| To: | Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] ipx - set socket owner field |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Fri, 29 Aug 2003 11:37:04 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] econet - set socket owner field, Stephen Hemminger |
|---|---|
| Next by Date: | [PATCH] atm - set socket owner field, Stephen Hemminger |
| Previous by Thread: | [PATCH] econet - set socket owner field, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] ipx - set socket owner field, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |