netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][BLUETOOTH] remove now unneeded references to sk_protinfo
@ 2005-03-19 18:06 Arnaldo Carvalho de Melo
  2005-03-19 18:28 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2005-03-19 18:06 UTC (permalink / raw)
  To: davem, Marcel Holtmann; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

Hi David, Marcel,

	Please apply this patch, now only the HAM radio protocols
and af_wanpipe uses sk_protinfo.

	Available at:

bk://kernel.bkbits.net/acme/connection_sock-2.6

- Arnaldo

[-- Attachment #2: bluetooth_sk_protinfo_removal.patch --]
[-- Type: text/plain, Size: 1795 bytes --]

===================================================================


ChangeSet@1.2289, 2005-03-19 14:41:18-03:00, acme@toy.ghostprotocols.net
  [BLUETOOTH] remove now unneeded references to sk_protinfo
  
  Now that sk_protinfo is not used anymore for storing private proto
  state, we can safely remove the code in the sock destruct path to
  kfree it.
  
  Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  Signed-off-by: David S. Miller <davem@davemloft.net>


 l2cap.c       |    3 ---
 rfcomm/sock.c |    3 ---
 sco.c         |    3 ---
 3 files changed, 9 deletions(-)


diff -Nru a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
--- a/net/bluetooth/l2cap.c	2005-03-19 15:01:55 -03:00
+++ b/net/bluetooth/l2cap.c	2005-03-19 15:01:55 -03:00
@@ -264,9 +264,6 @@
 
 	skb_queue_purge(&sk->sk_receive_queue);
 	skb_queue_purge(&sk->sk_write_queue);
-
-	if (sk->sk_protinfo)
-		kfree(sk->sk_protinfo);
 }
 
 static void l2cap_sock_cleanup_listen(struct sock *parent)
diff -Nru a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
--- a/net/bluetooth/rfcomm/sock.c	2005-03-19 15:01:55 -03:00
+++ b/net/bluetooth/rfcomm/sock.c	2005-03-19 15:01:55 -03:00
@@ -196,9 +196,6 @@
 	rfcomm_dlc_unlock(d);
 
 	rfcomm_dlc_put(d);
-
-	if (sk->sk_protinfo)
-		kfree(sk->sk_protinfo);
 }
 
 static void rfcomm_sock_cleanup_listen(struct sock *parent)
diff -Nru a/net/bluetooth/sco.c b/net/bluetooth/sco.c
--- a/net/bluetooth/sco.c	2005-03-19 15:01:55 -03:00
+++ b/net/bluetooth/sco.c	2005-03-19 15:01:55 -03:00
@@ -334,9 +334,6 @@
 
 	skb_queue_purge(&sk->sk_receive_queue);
 	skb_queue_purge(&sk->sk_write_queue);
-
-	if (sk->sk_protinfo)
-		kfree(sk->sk_protinfo);
 }
 
 static void sco_sock_cleanup_listen(struct sock *parent)


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

* Re: [PATCH][BLUETOOTH] remove now unneeded references to sk_protinfo
  2005-03-19 18:06 [PATCH][BLUETOOTH] remove now unneeded references to sk_protinfo Arnaldo Carvalho de Melo
@ 2005-03-19 18:28 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-03-19 18:28 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: David S. Miller, Network Development Mailing List

Hi Arnaldo,

> 	Please apply this patch, now only the HAM radio protocols
> and af_wanpipe uses sk_protinfo.
> 
> 	Available at:
> 
> bk://kernel.bkbits.net/acme/connection_sock-2.6

patch is in my tree now and I will send it to Dave with fixes for some
other race conditions very soon. One of them needs some extra testing.

Regards

Marcel

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

end of thread, other threads:[~2005-03-19 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19 18:06 [PATCH][BLUETOOTH] remove now unneeded references to sk_protinfo Arnaldo Carvalho de Melo
2005-03-19 18:28 ` Marcel Holtmann

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).