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

Commit 0d103579 authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

msm: mink: fix for infinite loop when listeners are invoked



When QSEECom listeners are invoked for calls initiated using SMCInvoke,
a wrong check is causing infinite loop. Fixing logic to prevent infinite
loop.

Change-Id: I9be9c69fd4fcc5831ac07f3863ff08e27a49c2ff
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent d18a2e31
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1017,7 +1017,7 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, size_t in_buf_len,
		 * qseecom does not understand smcinvoke's callback object &&
		 * erringly sets ret value as -EINVAL :( We need to handle it.
		 */
		if (ret && desc.ret[0] != SMCINVOKE_RESULT_INBOUND_REQ_NEEDED)
		if (desc.ret[0] != SMCINVOKE_RESULT_INBOUND_REQ_NEEDED)
			break;

		dmac_inv_range(out_buf, out_buf + out_buf_len);