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

Commit 76294fd5 authored by AnilKumar Chimata's avatar AnilKumar Chimata Committed by Gerrit - the friendly Code Review server
Browse files

qseecom: Propagate qseecom_load_external_elf failure to userspace



Return value of qseecom_load_external_elf() is changed before sending
the status to user space. This patch rectify the issue and propagate
the exact failure values.

Change-Id: I00feff4fa6fc5864e1264e5ac4479eca898443ea
Signed-off-by: default avatarAnilKumar Chimata <anilc@codeaurora.org>
parent 91cab8ef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -4278,6 +4278,7 @@ static int qseecom_load_external_elf(struct qseecom_dev_handle *data,
{
	struct ion_handle *ihandle;	/* Ion handle */
	struct qseecom_load_img_req load_img_req;
	int uret = 0;
	int ret;
	ion_phys_addr_t pa = 0;
	size_t len;
@@ -4381,8 +4382,11 @@ exit_disable_clock:
exit_register_bus_bandwidth_needs:
	if (qseecom.support_bus_scaling) {
		mutex_lock(&qsee_bw_mutex);
		ret = qseecom_unregister_bus_bandwidth_needs(data);
		uret = qseecom_unregister_bus_bandwidth_needs(data);
		mutex_unlock(&qsee_bw_mutex);
		if (uret)
			pr_err("Failed to unregister bus bw needs %d, scm_call ret %d\n",
								uret, ret);
	}

exit_cpu_restore: