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

Commit c164b4ee authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: fixed a bug in __qseecom_set_sb_memory



__qseecom_set_sb_memory should only unmap
address in error case, and return directly
in case of success to avoid unnecessary
unmap.

Change-Id: I96c81ccfb8fb76613b911ac457b588050c43f7e9
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 5027ffca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1716,6 +1716,7 @@ static int qseecom_set_client_mem_param(struct qseecom_dev_handle *data,
	data->client.sb_length = req.sb_len;
	data->client.user_virt_sb_base = (uintptr_t)req.virt_sb_base;

	return ret;
exit:
	qseecom_vaddr_unmap(data->client.sb_virt, data->client.sgt,
			 data->client.attach, data->client.dmabuf);