Skip to contentSkip to conversation

ipx - set socket owner field

PATCH Applied Stephen Hemminger 3 participants 3 messages Aug 29, 2003 – Aug 31, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipx - set socket owner field

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

net/ipx/af_ipx.c +1 -0
diff -Nru a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
@@ -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:
#1 lore raw
Quoted 2 lines · On Fri, 29 Aug 2003 11:37:04 -0700 Stephen Hemminger <[email protected]>…

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

Applied, thanks.

#2 lore raw
In reply to Stephen Hemminger

Em Fri, Aug 29, 2003 at 11:37:04AM -0700, Stephen Hemminger escreveu:

Quoted 9 lines

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

net/ipx/af_ipx.c line 1371

Quoted 7 lines
net/ipx/af_ipx.c +1 -0
@@ -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