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

Commit 64517d01 authored by Keith Fallows's avatar Keith Fallows
Browse files

fix corrupted smc_fastcall returned error code TBUG-464



Change-Id: Ibf79cc31af688f2d36fc95c74c8c48f4440a1c0c
Signed-off-by: default avatarSylvain Trosset <trosset.sylvain@gmail.com>
Signed-off-by: default avatarKeith Fallows <keithf@codeaurora.org>
Acked-by: default avatarTony Hamilton <tonyh@qti.qualcomm.com>
parent ee1a0fe1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@ static inline int smc_fastcall(void *fc_generic, size_t size)
		SCM_MOBIOS_FNID(SCM_SVC_MOBICORE, SCM_CMD_MOBICORE),
		&desc);

	dmac_flush_range(scm_buf, scm_buf + size);

	memcpy(fc_generic, scm_buf, size);
	kfree(scm_buf);
	return ret;