summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-02-28 09:52:46 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-29 16:18:03 +0200
commit3379013bcfceb3c0365a3cf03543d6c67b84fc34 (patch)
treef1af3dbe45673de5b444e2a19df8135bf5728512 /net/bluetooth
parent02b7cc62b6176748dc5b55e0ca9c965f73a5c300 (diff)
downloadlinux-3379013bcfceb3c0365a3cf03543d6c67b84fc34.tar.bz2
Bluetooth: use kfree_skb() instead of kfree()
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
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;
}