Skip to content
Commit 6fe437cf authored by Yeo Reum Yun's avatar Yeo Reum Yun Committed by Sudeep Holla
Browse files

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: e7818584 ("firmware: arm_ffa: Add initial FFA bus support for device enumeration")
Signed-off-by: Yeo Reum Yun's avatarLevi Yun <yeoreum.yun@arm.com>
Message-Id: <20241203143109.1030514-2-yeoreum.yun@arm.com>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
parent 40384c84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment