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

Skip to content
Commit 31bcfbf6 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

msm: pcie: fix race between DRV suspend/resume and RPMSG operations



There can exist a possible race between a DRV suspend/resume and
the RPMSG probe/remove operations leading to a use after free
scenario from the RC driver. To avoid this, introduce a mutex to
lock RPMSG specific areas and mainly block GLINK from freeing the
rpdev if RC driver is currently performing any DRV suspend/resume
operation using rpmsg_trysend() or rpmsg_send().

Change-Id: If46d5af3a924bee8360fae5bfc3d42bb494f620d
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent b490abfe
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