Skip to content

Commit 3aa0519

Browse files
balint-dobszay-armsudeep-holla
authored andcommitted
firmware: arm_ffa: Set handle field to zero in memory descriptor
As described in the commit 111a833 ("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: 111a833 ("firmware: arm_ffa: Set reserved/MBZ fields to zero in the memory descriptors") Reported-by: Imre Kis <[email protected]> Signed-off-by: Balint Dobszay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 111a833 commit 3aa0519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize,
424424
ep_mem_access->flag = 0;
425425
ep_mem_access->reserved = 0;
426426
}
427+
mem_region->handle = 0;
427428
mem_region->reserved_0 = 0;
428429
mem_region->reserved_1 = 0;
429430
mem_region->ep_count = args->nattrs;

0 commit comments

Comments
 (0)