Commit 90d0963d authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

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

Use kfree_skb() to free sbk_buffs.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment