diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2024-01-08 13:34:11 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2024-01-22 11:07:11 +0100 |
commit | 59b2e242b13192e50bf47df3780bf8a7e2260e98 (patch) | |
tree | 705b050f8ce3465f8953fedf4d428356b15ec174 /drivers/firmware/arm_ffa/driver.c | |
parent | Linux 6.8-rc1 (diff) | |
download | linux-59b2e242b13192e50bf47df3780bf8a7e2260e98.tar.xz linux-59b2e242b13192e50bf47df3780bf8a7e2260e98.zip |
firmware: arm_ffa: Add missing rwlock_init() in ffa_setup_partitions()
Add the missing rwlock initialization for the individual FF-A partition
information in ffa_setup_partitions().
Fixes: 0184450b8b1e ("firmware: arm_ffa: Add schedule receiver callback mechanism")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-1-75bf7035bc50@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_ffa/driver.c')
-rw-r--r-- | drivers/firmware/arm_ffa/driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c index 6146b2927d5c..ed1d6a24934e 100644 --- a/drivers/firmware/arm_ffa/driver.c +++ b/drivers/firmware/arm_ffa/driver.c @@ -1226,6 +1226,7 @@ static void ffa_setup_partitions(void) ffa_device_unregister(ffa_dev); continue; } + rwlock_init(&info->rw_lock); xa_store(&drv_info->partition_info, tpbuf->id, info, GFP_KERNEL); } drv_info->partition_count = count; |