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

Commit e5178a08 authored by Deepak Kumar Singh's avatar Deepak Kumar Singh
Browse files

net: qrtr: hold ept sem lock before node lookup



Node ref count decrement and test is performed inside ept
sem lock while node lookup is done inside node spin lock.
This can sometime cause node lookup to succeed while parallely
node can be freed in node release function. This will further
use of node and will result in use after free.

Additionally hold ept smem lock before performing node lookup.

Change-Id: Iaa5781c56ebee51611dfea9fddcde50f1367dfea
Signed-off-by: default avatarDeepak Kumar Singh <deesin@codeaurora.org>
parent 38b1718d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment