* [PATCH] bluetooth - set sock owner
@ 2003-08-29 18:20 Stephen Hemminger
2003-08-31 2:24 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-29 18:20 UTC (permalink / raw)
To: Maxim Krasnyansky, 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/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
--- a/net/bluetooth/af_bluetooth.c Fri Aug 29 11:14:03 2003
+++ b/net/bluetooth/af_bluetooth.c Fri Aug 29 11:14:03 2003
@@ -130,6 +130,7 @@
}
sock_init_data(sock, sk);
+ sk_set_owner(sk, THIS_MODULE);
INIT_LIST_HEAD(&bt_sk(sk)->accept_q);
sk->sk_zapped = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bluetooth - set sock owner
2003-08-29 18:20 [PATCH] bluetooth - set sock owner Stephen Hemminger
@ 2003-08-31 2:24 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-08-31 2:24 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: maxk, netdev
On Fri, 29 Aug 2003 11:20:59 -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 Stephen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-31 2:24 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:20 [PATCH] bluetooth - set sock owner Stephen Hemminger
2003-08-31 2:24 ` 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).