mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 23:21:49 -04:00
6LoWPAN: use kfree_skb() instead of kfree()
Use kfree_skb() to free sbk_buffs. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
929f61896e
commit
90d0963d17
@@ -674,7 +674,7 @@ lowpan_process_data(struct sk_buff *skb)
|
||||
sizeof(hdr));
|
||||
return lowpan_skb_deliver(skb, &hdr);
|
||||
drop:
|
||||
kfree(skb);
|
||||
kfree_skb(skb);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user