Bluetooth: use kfree_skb() instead of kfree()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 28 Feb 2012 06:52:46 +0000 (09:52 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 29 Feb 2012 14:18:03 +0000 (16:18 +0200)
sk_buffs should be freed using kfree_skb().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c

index bdcfbf0f631e1d76e7fe77496f101867c506133e..df3be692f2cfc0eff9d772836d4a93753bc30e0b 100644 (file)
@@ -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;
        }