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

Commit f02c7d43 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Liam Mark
Browse files

msm: secure_buffer: fix scm call argument layout



For hyp_assign calls, dest_vm_and_perm_info wrongly
defines ctx as u32 * type, while TZ expects it as u64.
This creates an inconsistency on 32bit system. Fix it.

Change-Id: I31e8e0b5e9ae240ca031f625cf7c49f1bfe165d4
Signed-off-by: default avatarShiraz Hashim <shashim@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent dd612c7e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ struct mem_prot_info {
struct dest_vm_and_perm_info {
	u32 vm;
	u32 perm;
	u32 *ctx;
	u64 ctx;
	u32 ctx_size;
};

@@ -210,7 +210,7 @@ populate_dest_info(int *dest_vmids, int nelements, int *dest_perms,
	for (i = 0; i < nelements; i++) {
		dest_info[i].vm = dest_vmids[i];
		dest_info[i].perm = dest_perms[i];
		dest_info[i].ctx = NULL;
		dest_info[i].ctx = 0x0;
		dest_info[i].ctx_size = 0;
	}