summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-08-24 02:01:02 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-24 09:08:25 +0300
commit5128b18522e143e634712ceef6a007333b8c7439 (patch)
tree49acedf77a9b7c6bf928bafbeccff1aee3134df2 /net/tipc
parent184b49c89f39f5c5ad262a6456248284e10984c6 (diff)
downloadlinux-5128b18522e143e634712ceef6a007333b8c7439.tar.xz
tipc: use kfree_skb() instead of kfree()
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> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/bearer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index 6fc4e3cca49a..28056fa8f77a 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();
}