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

Commit 94cad8e5 authored by Eric Holmberg's avatar Eric Holmberg
Browse files

soc: qcom: glink: add channel context reference counting



A channel context always has a reference count of at least one if it is
in the channel list for a transport, but as soon as the list lock is
released, then the count can go to zero leading to an access-after-free
scenario.

Add a reference count whenever a channel context is looked up to ensure
that it stays valid for the duration of use.

Change-Id: Ia3a9c3eac13518f247d2e27f869446460f00890d
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 6a27fa9e
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