Skip to contentSkip to conversation

bluetooth - set sock owner

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

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

PATCH 1/1 bluetooth - set sock owner

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

net/bluetooth/af_bluetooth.c +1 -0
diff -Nru a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
@@ -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;
#1 lore raw
Quoted 2 lines · On Fri, 29 Aug 2003 11:20:59 -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 Stephen.