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

Skip to content
Commit 1f4cfcf9 authored by Deepak Kumar Singh's avatar Deepak Kumar Singh
Browse files

rpmsg: glink: spi: increment channel ref count before intent request



Releasing the glink spi channel while a client is waiting on
intent request queue can result in use after free case.

To avoid channel release in this case, first incrementing
channel ref count and then waiting for intent response.

In ssr case  waking up threads waiting for intent to decrement
the channel ref count, so that channel release operation is not delayed.

CR-Fixed: 2400497
Change-Id: I109db54e0203d47ba897a95d426082dab5d1bc23
Signed-off-by: default avatarDeepak Kumar Singh <deesin@codeaurora.org>
parent d02d62b8
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