From: Gustavo F. Padovan Date: Sat, 1 May 2010 19:15:35 +0000 (-0300) Subject: Bluetooth: Fix memory leak of S-frames into L2CAP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=faaebd192ec9c3febcab98149d1309199a5b886c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: João Paulo Rechi Vita Signed-off-by: Marcel Holtmann --- 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 break; } + kfree_skb(skb); return 0; }