Skip to content

Commit

Permalink
6LoWPAN: use kfree_skb() instead of kfree()
Browse files Browse the repository at this point in the history
Use kfree_skb() to free sbk_buffs.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Sep 15, 2011
1 parent 929f618 commit 90d0963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 90d0963

Please sign in to comment.