projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02b7cc6
)
Bluetooth: use kfree_skb() instead of kfree()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 28 Feb 2012 06:52:46 +0000
(09:52 +0300)
committer
Johan 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
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index bdcfbf0f631e1d76e7fe77496f101867c506133e..df3be692f2cfc0eff9d772836d4a93753bc30e0b 100644
(file)
--- 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;
}