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

Commit 7f9aeb17 authored by Anmolpreet Kaur's avatar Anmolpreet Kaur
Browse files

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: default avatarAnmolpreet Kaur <anmolpre@codeaurora.org>
parent 66d2f998
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3037,8 +3037,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: