qseecom: Propagate correct return value from TZ
When unload app fails, return the correct return value that we get from TZ and not translate it to EFAULT. This will make sure that proper handling is done at the calling side. Change-Id: Ie850967e5c44b502b888324291a878d0a467b46b Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
This commit is contained in:
parent
5702001dfb
commit
ea551156f1
@ -3052,8 +3052,9 @@ static int __qseecom_unload_app(struct qseecom_dev_handle *data,
|
||||
sizeof(struct qseecom_unload_app_ireq),
|
||||
&resp, sizeof(resp));
|
||||
if (ret) {
|
||||
pr_err("scm_call to unload app (id = %d) failed\n", app_id);
|
||||
return -EFAULT;
|
||||
pr_err("scm_call to unload app (id = %d) failed ret: %d\n",
|
||||
app_id, ret);
|
||||
return ret;
|
||||
}
|
||||
switch (resp.result) {
|
||||
case QSEOS_RESULT_SUCCESS:
|
||||
|
Loading…
Reference in New Issue
Block a user