[PATCH] ipx - set socket owner field

STALE8408d

3 messages, 3 authors, 2003-08-31 · open the first message on its own page

[PATCH] ipx - set socket owner field

From: Stephen Hemminger <hidden>
Date: 2003-08-29 18:37:04

All sockets created by a protocol need to have owner field set
to prevent problems with orphaned sockets during module unload.

Patch for 2.6.0-test4

diff -Nru a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
--- a/net/ipx/af_ipx.c	Fri Aug 29 11:20:48 2003
+++ b/net/ipx/af_ipx.c	Fri Aug 29 11:20:48 2003
@@ -1365,6 +1365,7 @@
 			atomic_read(&ipx_sock_nr));
 #endif
 	sock_init_data(sock, sk);
+	sk_set_owner(sk, THIS_MODULE);
 	sk->sk_no_check = 1;		/* Checksum off by default */
 	rc = 0;
 out:

Re: [PATCH] ipx - set socket owner field

From: David S. Miller <hidden>
Date: 2003-08-31 02:06:50

On Fri, 29 Aug 2003 11:37:04 -0700
Stephen Hemminger [off-list ref] wrote:
All sockets created by a protocol need to have owner field set
to prevent problems with orphaned sockets during module unload.
Applied, thanks.

Re: [PATCH] ipx - set socket owner field

From: Arnaldo Carvalho de Melo <hidden>
Date: 2003-08-31 17:35:30

Em Fri, Aug 29, 2003 at 11:37:04AM -0700, Stephen Hemminger escreveu:
quoted hunk
All sockets created by a protocol need to have owner field set
to prevent problems with orphaned sockets during module unload.

Patch for 2.6.0-test4

diff -Nru a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
--- a/net/ipx/af_ipx.c	Fri Aug 29 11:20:48 2003
+++ b/net/ipx/af_ipx.c	Fri Aug 29 11:20:48 2003
@@ -1365,6 +1365,7 @@
 			atomic_read(&ipx_sock_nr));
 #endif
 	sock_init_data(sock, sk);
+	sk_set_owner(sk, THIS_MODULE);
 	sk->sk_no_check = 1;		/* Checksum off by default */
 	rc = 0;
 out:
Thanks Stephen, I'm having problems with my home network for the last week or
so, so have been pretty much unresponsive, will be looking over all this and
the appletalk test (yes, I haven't forgotten that one) as soon as possible.

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help