Skip to contentSkip to conversation

: Networking

GIT In review David Miller 3 participants 4 messages Oct 27, 2008 – Oct 30, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

Several bug fixes:

1) Skb ->when timestamp setting for syncookies got messed up by TCP option building engine changes in 2.6.27. Fix from Florian Westphal

I'll submit this thusly to -stable as well.

2) Couple places trying to pass sk_buff to kfree() instead of kfree_skb(). Fixed by Sergio Luis

3) Two fixes for the new phonet protocol layer from Remi Denis-Courmont

Please pull, thanks a lot.

The following changes since commit f8d56f1771e4867acc461146764b4feeb5245669:
Linus Torvalds (1):
Merge branch 'for-linus' of git://neil.brown.name/md

are available in the git repository at:

master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6.git master

Florian Westphal (1):
syncookies: fix inclusion of tcp options in syn-ack

Remi Denis-Courmont (2):
Phonet: include generic link-layer header size in MAX_PHONET_HEADER
Phonet: do not reply to indication reset packets

Sergio Luis (2):
btsdio: free sk_buff with kfree_skb
libertas: free sk_buff with kfree_skb

 drivers/bluetooth/btsdio.c         |    2 +-
 drivers/net/wireless/libertas/rx.c |    2 +-
 include/linux/phonet.h             |    1 +
 include/net/phonet/phonet.h        |    2 +-
 net/ipv4/tcp_output.c              |   10 +++++-----
 net/phonet/af_phonet.c             |    5 ++++-
 6 files changed, 13 insertions(+), 9 deletions(-)
#1 lore raw

PATCH 1/1 bpa10x: free sk_buff with kfree_skb

Quoted 2 lines · David Miller

2) Couple places trying to pass sk_buff to kfree() instead of kfree_skb(). Fixed by Sergio Luis

I tried with coccinelle and found one more of these, though my other attempts with it haven't been all that successful...

--
[PATCH] bpa10x: free sk_buff with kfree_skb

Inspired by Sergio Luis' similar patches, I finally found a case which is trivial enough that spatch won't choke on it.

---
 drivers/bluetooth/bpa10x.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/bpa10x.c +2 -2
index 32f3a8e..b936d8c 100644
@@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev)
 
 	BT_DBG("%s", hdev->name);
 
-	kfree(data->rx_skb[0]);
-	kfree(data->rx_skb[1]);
+	kfree_skb(data->rx_skb[0]);
+	kfree_skb(data->rx_skb[1]);
 	kfree(data);
 }
 
Signature · 1 line
1.5.2.2
maintainer Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] bpa10x: free sk_buff with kfree_skb

Hi Ilpo,

Quoted 7 lines
Quoted 2 lines

2) Couple places trying to pass sk_buff to kfree() instead of kfree_skb(). Fixed by Sergio Luis

I tried with coccinelle and found one more of these, though my other attempts with it haven't been all that successful...

Quoted 8 lines

--
[PATCH] bpa10x: free sk_buff with kfree_skb

Inspired by Sergio Luis' similar patches, I finally found a case which is trivial enough that spatch won't choke on it.

good catch.

Dave, feel free to take this directly and apply it to your trees.

Regards

Marcel

author maintainer
#3 lore raw

Re: [PATCH] bpa10x: free sk_buff with kfree_skb

From: Marcel Holtmann <[email protected]>
Date: Thu, 30 Oct 2008 05:09:34 +0100

Quoted 16 lines

Hi Ilpo,

Quoted 14 lines
Quoted 2 lines

2) Couple places trying to pass sk_buff to kfree() instead of kfree_skb(). Fixed by Sergio Luis

I tried with coccinelle and found one more of these, though my other attempts with it haven't been all that successful...

--
[PATCH] bpa10x: free sk_buff with kfree_skb

Inspired by Sergio Luis' similar patches, I finally found a case which is trivial enough that spatch won't choke on it.

Quoted 7 lines
Quoted 1 line

good catch.

Dave, feel free to take this directly and apply it to your trees.

Thanks, I will.