netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atm - set socket owner field
@ 2003-08-29 18:37 Stephen Hemminger
  2003-08-31  2:07 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-29 18:37 UTC (permalink / raw)
  To: Chas Williams, David S. Miller; +Cc: netdev

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/atm/common.c b/net/atm/common.c
--- a/net/atm/common.c	Fri Aug 29 11:24:19 2003
+++ b/net/atm/common.c	Fri Aug 29 11:24:19 2003
@@ -279,6 +279,7 @@
 	if (!sk)
 		return -ENOMEM;
 	sock_init_data(sock, sk);
+	sk_set_owner(sk, THIS_MODULE);
 	sk->sk_state_change = vcc_def_wakeup;
 	sk->sk_write_space = vcc_write_space;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] atm - set socket owner field
  2003-08-29 18:37 [PATCH] atm - set socket owner field Stephen Hemminger
@ 2003-08-31  2:07 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-08-31  2:07 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: chas, netdev

On Fri, 29 Aug 2003 11:37:58 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:

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

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-31  2:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-29 18:37 [PATCH] atm - set socket owner field Stephen Hemminger
2003-08-31  2:07 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).