netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] econet - set socket owner field
@ 2003-08-29 18:18 Stephen Hemminger
  2003-08-31  2:06 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-29 18:18 UTC (permalink / raw)
  To: 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.

diff -Nru a/net/econet/af_econet.c b/net/econet/af_econet.c
--- a/net/econet/af_econet.c	Fri Aug 29 11:15:12 2003
+++ b/net/econet/af_econet.c	Fri Aug 29 11:15:12 2003
@@ -562,6 +562,7 @@
 	sk->sk_reuse = 1;
 	sock->ops = &econet_ops;
 	sock_init_data(sock,sk);
+	sk_set_owner(sk, THIS_MODULE);
 
 	eo = ec_sk(sk) = kmalloc(sizeof(*eo), GFP_KERNEL);
 	if (!eo)

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

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

On Fri, 29 Aug 2003 11:18:55 -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:06 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:18 [PATCH] econet - set socket owner field Stephen Hemminger
2003-08-31  2:06 ` 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).