Skip to content

Commit

Permalink
Bluetooth: use kfree_skb() instead of kfree()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Johan Hedberg committed Feb 29, 2012
1 parent 02b7cc6 commit 3379013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3379013

Please sign in to comment.