diff options
author | Levi Yun <[email protected]> | 2024-12-03 14:31:08 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2024-12-04 09:59:54 +0000 |
commit | 6fe437cfe2cdc797b03f63b338a13fac96ed6a08 (patch) | |
tree | 0e2f0c6013f7c3a5eb502e18a21120f916b5ed32 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) |
firmware: arm_ffa: Fix the race around setting ffa_dev->properties
Currently, ffa_dev->properties is set after the ffa_device_register()
call return in ffa_setup_partitions(). This could potentially result in
a race where the partition's properties is accessed while probing
struct ffa_device before it is set.
Update the ffa_device_register() to receive ffa_partition_info so all
the data from the partition information received from the firmware can
be updated into the struct ffa_device before the calling device_register()
in ffa_device_register().
Fixes: e781858488b9 ("firmware: arm_ffa: Add initial FFA bus support for device enumeration")
Signed-off-by: Levi Yun <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions