linux-next/drivers/firmware/arm_ffa
Levi Yun 6fe437cfe2 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: e781858488 ("firmware: arm_ffa: Add initial FFA bus support for device enumeration")
Signed-off-by: Levi Yun <yeoreum.yun@arm.com>
Message-Id: <20241203143109.1030514-2-yeoreum.yun@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2024-12-04 09:59:54 +00:00
..
bus.c firmware: arm_ffa: Fix the race around setting ffa_dev->properties 2024-12-04 09:59:54 +00:00
common.h firmware: arm_ffa: Split bus and driver into distinct modules 2024-05-29 23:23:25 +01:00
driver.c firmware: arm_ffa: Fix the race around setting ffa_dev->properties 2024-12-04 09:59:54 +00:00
Kconfig firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00
Makefile firmware: arm_ffa: Split bus and driver into distinct modules 2024-05-29 23:23:25 +01:00
smccc.c firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00