Commit 59b2e242 authored by Cristian Marussi's avatar Cristian Marussi Committed by Sudeep Holla

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: 0184450b ("firmware: arm_ffa: Add schedule receiver callback mechanism")
Signed-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-1-75bf7035bc50@arm.comSigned-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 6613476e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment