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

Commit 5040ae5f authored by Sylvain Trosset's avatar Sylvain Trosset Committed by Keith Fallows
Browse files

fix corrupted smc_fastcall returned error code TBUG-464



Change-Id: Icb42107b5ffae75d99cbcd5f3d6da8add4313dfc
Signed-off-by: default avatarSylvain Trosset <trosset.sylvain@gmail.com>
Git-commit: ac218c2c0b414e1a97dc2b7094d1a18c7b4960cd
Git-repo: https://code.google.com/p/tee-mobicore-driver.kernel/


Acked-by: default avatarTony Hamilton <tonyh@qti.qualcomm.com>
Signed-off-by: default avatarKeith Fallows <keithf@codeaurora.org>
parent e3a543d6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -84,6 +84,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;