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-Tag: v2.6.35-rc1~473^2~227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faaebd192ec9c3febcab98149d1309199a5b886c;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 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; }