Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faaebd19 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Marcel Holtmann
Browse files

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: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: default avatarJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c69163e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3522,6 +3522,7 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
		break;
		break;
	}
	}


	kfree_skb(skb);
	return 0;
	return 0;
}
}