Skip to contentSkip to conversation

tipc: use kfree_skb() instead of kfree()

PATCH Applied Wei Yongjun 4 participants 5 messages Aug 23, 2016 – Aug 24, 2016

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

PATCH 1/1 tipc: use kfree_skb() instead of kfree()

From: Wei Yongjun <[email protected]>

Use kfree_skb() instead of kfree() to free sk_buff.

Fixes 0d051bf93c06 ("tipc: make bearer packet filtering generic")
---
 net/tipc/bearer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/bearer.c +1 -1
index 6fc4e3c..28056fa 100644
@@ -529,7 +529,7 @@ void tipc_bearer_xmit(struct net *net, u32 bearer_id,
 		if (likely(test_bit(0, &b->up) || msg_is_reset(buf_msg(skb))))
 			b->media->send_msg(net, skb, b, dst);
 		else
-			kfree(skb);
+			kfree_skb(skb);
 	}
 	rcu_read_unlock();
 }
Acked-by on v1 1/1
#1 lore raw

-----Original Message-----
From: Wei Yongjun [mailto:[email protected]]
Sent: Wednesday, August 24, 2016 7:01 AM
To: Jon Maloy; Xue, Ying; David S. Miller
Cc: Wei Yongjun; [email protected]; [email protected]
Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()

From: Wei Yongjun <[email protected]>

Use kfree_skb() instead of kfree() to free sk_buff.

Fixes 0d051bf93c06 ("tipc: make bearer packet filtering generic")
---
 net/tipc/bearer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/bearer.c +1 -1
@@ -529,7 +529,7 @@ void tipc_bearer_xmit(struct net *net, u32 bearer_id,
 		if (likely(test_bit(0, &b->up) || msg_is_reset(buf_msg(skb))))
 			b->media->send_msg(net, skb, b, dst);
 		else
-			kfree(skb);
+			kfree_skb(skb);
 	}
 	rcu_read_unlock();
 }

------------------------------------------------------------------------------

maintainer
#2 lore raw

From: "Xue, Ying" <[email protected]>
Date: Wed, 24 Aug 2016 02:47:32 +0000

Quoted 1 line

Please do not ACK patches like this.

If you quote the patch with no demarcation in the initial column for the quoted text, like so:

Quoted 9 lines

From: Wei Yongjun [mailto:[email protected]]
Sent: Wednesday, August 24, 2016 7:01 AM
To: Jon Maloy; Xue, Ying; David S. Miller
Cc: Wei Yongjun; [email protected]; [email protected]
Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()

From: Wei Yongjun <[email protected]>

Use kfree_skb() instead of kfree() to free sk_buff.

...

then it makes it look like _you_ are posting this patch, so it ends up again in patchwork and your ACK gets lost.

I truly feel like I've told you this at least one time already before, so please fix your quoting so that it adheres to the list posting standards used by everyone else here.

Thank you.

------------------------------------------------------------------------------

#3 lore raw
In reply to David Miller
Quoted 19 lines · David Miller

From: "Xue, Ying" <[email protected]>
Date: Wed, 24 Aug 2016 02:47:32 +0000

Quoted 1 line

Please do not ACK patches like this.

If you quote the patch with no demarcation in the initial column for the quoted text, like so:

Quoted 9 lines

From: Wei Yongjun [mailto:[email protected]]
Sent: Wednesday, August 24, 2016 7:01 AM
To: Jon Maloy; Xue, Ying; David S. Miller
Cc: Wei Yongjun; [email protected]; [email protected]
Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()

From: Wei Yongjun <[email protected]>

Use kfree_skb() instead of kfree() to free sk_buff.

Quoted 9 lines

...

then it makes it look like _you_ are posting this patch, so it ends up again in patchwork and your ACK gets lost.

I truly feel like I've told you this at least one time already before, so please fix your quoting so that it adheres to the list posting standards used by everyone else here.

Sorry for bringing such inconvenience for you.
I am sure I will strictly follow the standards in the future.

Regards,
Ying

Quoted 2 lines

Thank you.