summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-05-01 16:15:35 -0300
committerMarcel Holtmann <marcel@holtmann.org>2010-05-10 09:28:45 +0200
commitfaaebd192ec9c3febcab98149d1309199a5b886c (patch)
tree2509dbba335bc837326dc2f25d905af6e4540290 /net/bluetooth
parentc69163e9ed5048407cc84f439cbfecc53f6f7131 (diff)
downloadop-kernel-dev-faaebd192ec9c3febcab98149d1309199a5b886c.zip
op-kernel-dev-faaebd192ec9c3febcab98149d1309199a5b886c.tar.gz
Bluetooth: Fix memory leak of S-frames into L2CAP
l2cap_data_channel do not free the S-frame, so we free it here. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index c9a848d..46f2264 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3522,6 +3522,7 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
break;
}
+ kfree_skb(skb);
return 0;
}
OpenPOWER on IntegriCloud