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:
Chris Lew <clew@codeaurora.org>
Loading
Please register or sign in to comment