Skip to content

Commit

Permalink
tipc: use kfree_skb() instead of kfree()
Browse files Browse the repository at this point in the history
Use kfree_skb() instead of kfree() to free sk_buff.

Fixes: 0d051bf ("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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Aug 24, 2016
1 parent 184b49c commit 5128b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/bearer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5128b18

Please sign in to comment.