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

Commit 6969f296 authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: Improve listener processing related to QSEE Reentrancy



In __qseecom_reentrancy_process_incomplete_cmd(), qseecom.send_resp_flag
should be reset to 0 after getting listener resp; otherwise, a new
listener request thread may be awaken up before the new listener
sent response.

Besides, remove global app_access_lock for QSEECOM_IOCTL_SEND_MODFD_RESP
processing; this is because ioctl command QSEECOM_IOCTL_SEND_MODFD_RESP
does not send cmd to TZ or access tz app. Thus, when this mutex is
already hold by the thread requesting Secure-UI listener service, a
deadlock would happen when if QSEECOM_IOCTL_SEND_MODFD_RESP tries to
grab this mutex.

Change-Id: I81de1b853a29c5c8050b8cfdbf9bdca13ab3461d
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 9fffca4f
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