tipc: use kfree_skb() instead of kfree()
Subsystems (3)
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.
--- 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 (); }
-----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.
--- 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 (); }
------------------------------------------------------------------------------
David Miller
maintainerFrom: "Xue, Ying" <[email protected]>
Date: Wed, 24 Aug 2016 02:47:32 +0000
Quoted 1 line
Acked-by Ying Xue <[email protected]>
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: usekfree_skb()instead ofkfree()From: Wei Yongjun <[email protected]>
Use
kfree_skb()instead ofkfree()to freesk_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.
------------------------------------------------------------------------------
Quoted 19 lines · David Miller
From: "Xue, Ying" <[email protected]>
Date: Wed, 24 Aug 2016 02:47:32 +0000Quoted 1 line
Acked-by Ying Xue <[email protected]>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: usekfree_skb()instead ofkfree()From: Wei Yongjun <[email protected]>
Use
kfree_skb()instead ofkfree()to freesk_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.
From: Wei Yongjun <[email protected]>
Date: Tue, 23 Aug 2016 23:01:02 +0000
Quoted 6 lines
From: Wei Yongjun <[email protected]>
Use
kfree_skb()instead ofkfree()to freesk_buff.Fixes 0d051bf93c06 ("tipc: make bearer packet filtering generic")Signed-off-by Wei Yongjun <[email protected]>
Applied, thanks.
------------------------------------------------------------------------------