diff options
author | Zhen Kong <zkong@codeaurora.org> | 2019-06-10 13:06:41 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-08-20 20:10:59 -0700 |
commit | 82d353ee1a169274a2ef8c20f45d4a1411b33531 (patch) | |
tree | 94ce1ca23772b0e61370911259dac27f834f93a5 | |
parent | a3e07a359fe311c6b8a5252d177f123db373f5d1 (diff) |
qseecom: use scm_call2 for shutdown appLA.UM.7.8.r1-06900-SDM710.0
Unlike scm_call2, __qseecom_scm_call2_locked() will unlock
app_access_lock to let another qseecom thread work. But this
mutex should not be released for shutdown app thread to
prevent another thread accessing the resource that is freed
by shutdown thread. So change to use scm_call2 for this cmd.
Change-Id: Ifdd526e0b401cab5c9d6df71d5854022e0f273f0
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
-rw-r--r-- | drivers/misc/qseecom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/qseecom.c b/drivers/misc/qseecom.c index d444046b9c19..5f4716bb99e3 100644 --- a/drivers/misc/qseecom.c +++ b/drivers/misc/qseecom.c @@ -535,7 +535,7 @@ static int qseecom_scm_call2(uint32_t svc_id, uint32_t tz_cmd_id, smc_id = TZ_OS_APP_SHUTDOWN_ID; desc.arginfo = TZ_OS_APP_SHUTDOWN_ID_PARAM_ID; desc.args[0] = req->app_id; - ret = __qseecom_scm_call2_locked(smc_id, &desc); + ret = scm_call2(smc_id, &desc); break; } case QSEOS_APP_LOOKUP_COMMAND: { |