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

Skip to content
Commit 683d949a authored by Lukáš Turek's avatar Lukáš Turek Committed by Gustavo F. Padovan
Browse files

Bluetooth: Never deallocate a session when some DLC points to it

Fix a bug introduced in commit 9cf5b0ea:
function rfcomm_recv_ua calls rfcomm_session_put without checking that
the session is not referenced by some DLC. If the session is freed, that
DLC would refer to deallocated memory, causing an oops later, as shown
in this bug report: https://bugzilla.kernel.org/show_bug.cgi?id=15994



Signed-off-by: default avatarLukas Turek <8an@praha12.net>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent e2e0cacb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment