Commit 3aa0519a authored by Balint Dobszay's avatar Balint Dobszay Committed by Sudeep Holla

firmware: arm_ffa: Set handle field to zero in memory descriptor

As described in the commit 111a833d ("firmware: arm_ffa: Set
reserved/MBZ fields to zero in the memory descriptors") some fields in
the memory descriptor have to be zeroed explicitly. The handle field is
one of these, but it was left out from that change, fix this now.

Fixes: 111a833d ("firmware: arm_ffa: Set reserved/MBZ fields to zero in the memory descriptors")
Reported-by: default avatarImre Kis <imre.kis@arm.com>
Signed-off-by: default avatarBalint Dobszay <balint.dobszay@arm.com>
Link: https://lore.kernel.org/r/20230601140749.93812-1-balint.dobszay@arm.comSigned-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 111a833d
......@@ -424,6 +424,7 @@ ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize,
ep_mem_access->flag = 0;
ep_mem_access->reserved = 0;
}
mem_region->handle = 0;
mem_region->reserved_0 = 0;
mem_region->reserved_1 = 0;
mem_region->ep_count = args->nattrs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment