OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184b49c
)
tipc: use kfree_skb() instead of kfree()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 23 Aug 2016 23:01:02 +0000
(23:01 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 24 Aug 2016 06:08:25 +0000
(23:08 -0700)
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>
net/tipc/bearer.c
patch
|
blob
|
history
diff --git
a/net/tipc/bearer.c
b/net/tipc/bearer.c
index
6fc4e3c
..
28056fa
100644
(file)
--- 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();
}