aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-05-01 15:15:35 -0400
committerMarcel Holtmann <marcel@holtmann.org>2010-05-10 03:28:45 -0400
commitfaaebd192ec9c3febcab98149d1309199a5b886c (patch)
tree2509dbba335bc837326dc2f25d905af6e4540290 /net/bluetooth/l2cap.c
parentc69163e9ed5048407cc84f439cbfecc53f6f7131 (diff)
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/l2cap.c')
-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 c9a848d3ef94..46f22640a337 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
3522 break; 3522 break;
3523 } 3523 }
3524 3524
3525 kfree_skb(skb);
3525 return 0; 3526 return 0;
3526} 3527}
3527 3528