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

Commit 91dd610e authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: Change mutex operation for qseecom_unload_app



qseecom_unload_app is protected between global mutex lock/unlock.
And it will wait until all other ioctl functions related to the
same process are finished, then unload app.
When reentrancy is enabled and mutex is hold during sleep, another
cmd for the same app that tries to grab mutex may cause deadlock.
So we make change to unlock mutex before sleep and re-locked it
again after wake up.

Change-Id: I60eca546ba82e7261296202f941a416be5f898df
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 50e0173f
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