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

Skip to content
Commit affc8230 authored by Chris Lew's avatar Chris Lew
Browse files

net: qrtr: Prevent node assign for released nodes



When flushing the rx thread in __qrtr_node_release, there is a chance
one of the packets in the rx queue will trigger a node assign that
re-inserts the node into the radix tree.

At this time, it is possible for node lookup to find the released node
in the radix tree. This will lead to clients attempting to acquire
the node after it has been released.

Change the node assign function to only insert nodes if it exists in
the qrtr_all_epts list. This prevent re-inserting the node into the
radix tree.

Change-Id: Ia4ead5c095ca253a9096f0db529fcd2b40e0c86a
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent c555fe48
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