提交 90d0963d 编写于 作者: D Dan Carpenter 提交者: David S. Miller

6LoWPAN: use kfree_skb() instead of kfree()

Use kfree_skb() to free sbk_buffs.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 929f6189
...@@ -674,7 +674,7 @@ lowpan_process_data(struct sk_buff *skb) ...@@ -674,7 +674,7 @@ lowpan_process_data(struct sk_buff *skb)
sizeof(hdr)); sizeof(hdr));
return lowpan_skb_deliver(skb, &hdr); return lowpan_skb_deliver(skb, &hdr);
drop: drop:
kfree(skb); kfree_skb(skb);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册