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:
Zhen Kong <zkong@codeaurora.org>
Loading
Please register or sign in to comment