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

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