6LoWPAN: use kfree_skb() instead of kfree()
Dan Carpenter [Tue, 30 Aug 2011 03:45:52 +0000 (03:45 +0000)]
Use kfree_skb() to free sbk_buffs.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

net/ieee802154/6lowpan.c

index cf304cc..8a9dbaa 100644 (file)
@@ -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;
 }