From: Dan Carpenter Date: Tue, 28 Feb 2012 06:52:46 +0000 (+0300) Subject: Bluetooth: use kfree_skb() instead of kfree() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3379013bcfceb3c0365a3cf03543d6c67b84fc34;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: use kfree_skb() instead of kfree() sk_buffs should be freed using kfree_skb(). Signed-off-by: Dan Carpenter Acked-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index bdcfbf0f631e..df3be692f2cf 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -4284,7 +4284,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk if (!chan) { BT_DBG("unknown cid 0x%4.4x", cid); /* Drop packet and return */ - kfree(skb); + kfree_skb(skb); return 0; }