netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] tipc: use kfree_skb() instead of kfree()
@ 2016-08-23 23:01 Wei Yongjun
  2016-08-24  2:47 ` Xue, Ying
  2016-08-24  6:08 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Yongjun @ 2016-08-23 23:01 UTC (permalink / raw)
  To: Jon Maloy, Ying Xue, David S. Miller; +Cc: Wei Yongjun, netdev, tipc-discussion

From: Wei Yongjun <weiyongjun1@huawei.com>

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

Fixes: 0d051bf93c06 ("tipc: make bearer packet filtering generic")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 net/tipc/bearer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index 6fc4e3c..28056fa 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -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();
 }

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

* Re: [PATCH -next] tipc: use kfree_skb() instead of kfree()
  2016-08-23 23:01 [PATCH -next] tipc: use kfree_skb() instead of kfree() Wei Yongjun
@ 2016-08-24  2:47 ` Xue, Ying
  2016-08-24  6:00   ` David Miller
  2016-08-24  6:08 ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Xue, Ying @ 2016-08-24  2:47 UTC (permalink / raw)
  To: Wei Yongjun, Jon Maloy, David S. Miller
  Cc: netdev@vger.kernel.org, Wei Yongjun,
	tipc-discussion@lists.sourceforge.net

Acked-by: Ying Xue <ying.xue@windriver.com>

-----Original Message-----
From: Wei Yongjun [mailto:weiyj.lk@gmail.com] 
Sent: Wednesday, August 24, 2016 7:01 AM
To: Jon Maloy; Xue, Ying; David S. Miller
Cc: Wei Yongjun; netdev@vger.kernel.org; tipc-discussion@lists.sourceforge.net
Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()

From: Wei Yongjun <weiyongjun1@huawei.com>

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

Fixes: 0d051bf93c06 ("tipc: make bearer packet filtering generic")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 net/tipc/bearer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 6fc4e3c..28056fa 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -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();
 }

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

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

* Re: [PATCH -next] tipc: use kfree_skb() instead of kfree()
  2016-08-24  2:47 ` Xue, Ying
@ 2016-08-24  6:00   ` David Miller
  2016-08-24 10:18     ` Ying Xue
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2016-08-24  6:00 UTC (permalink / raw)
  To: Ying.Xue; +Cc: jon.maloy, weiyongjun1, weiyj.lk, tipc-discussion, netdev

From: "Xue, Ying" <Ying.Xue@windriver.com>
Date: Wed, 24 Aug 2016 02:47:32 +0000

> Acked-by: Ying Xue <ying.xue@windriver.com>

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:

> From: Wei Yongjun [mailto:weiyj.lk@gmail.com] 
> Sent: Wednesday, August 24, 2016 7:01 AM
> To: Jon Maloy; Xue, Ying; David S. Miller
> Cc: Wei Yongjun; netdev@vger.kernel.org; tipc-discussion@lists.sourceforge.net
> Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()
> 
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> 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.

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

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

* Re: [PATCH -next] tipc: use kfree_skb() instead of kfree()
  2016-08-23 23:01 [PATCH -next] tipc: use kfree_skb() instead of kfree() Wei Yongjun
  2016-08-24  2:47 ` Xue, Ying
@ 2016-08-24  6:08 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2016-08-24  6:08 UTC (permalink / raw)
  To: weiyj.lk; +Cc: jon.maloy, weiyongjun1, tipc-discussion, netdev

From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Tue, 23 Aug 2016 23:01:02 +0000

> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Use kfree_skb() instead of kfree() to free sk_buff.
> 
> Fixes: 0d051bf93c06 ("tipc: make bearer packet filtering generic")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

Applied, thanks.

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

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

* Re: [PATCH -next] tipc: use kfree_skb() instead of kfree()
  2016-08-24  6:00   ` David Miller
@ 2016-08-24 10:18     ` Ying Xue
  0 siblings, 0 replies; 5+ messages in thread
From: Ying Xue @ 2016-08-24 10:18 UTC (permalink / raw)
  To: David Miller; +Cc: weiyj.lk, jon.maloy, weiyongjun1, netdev, tipc-discussion

On 08/24/2016 02:00 PM, David Miller wrote:
> From: "Xue, Ying" <Ying.Xue@windriver.com>
> Date: Wed, 24 Aug 2016 02:47:32 +0000
> 
>> Acked-by: Ying Xue <ying.xue@windriver.com>
> 
> 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:
> 
>> From: Wei Yongjun [mailto:weiyj.lk@gmail.com] 
>> Sent: Wednesday, August 24, 2016 7:01 AM
>> To: Jon Maloy; Xue, Ying; David S. Miller
>> Cc: Wei Yongjun; netdev@vger.kernel.org; tipc-discussion@lists.sourceforge.net
>> Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()
>>
>> From: Wei Yongjun <weiyongjun1@huawei.com>
>>
>> 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.
> 

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

Regards,
Ying

> Thank you.
> 

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

end of thread, other threads:[~2016-08-24 10:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 23:01 [PATCH -next] tipc: use kfree_skb() instead of kfree() Wei Yongjun
2016-08-24  2:47 ` Xue, Ying
2016-08-24  6:00   ` David Miller
2016-08-24 10:18     ` Ying Xue
2016-08-24  6:08 ` David Miller

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