Skip to content

Commit 5ff30ad

Browse files
cris-masudeep-holla
authored andcommitted
firmware: arm_ffa: Add missing rwlock_init() for the driver partition
Add the missing rwlock initialization for the FF-A partition associated the driver in ffa_setup_partitions(). It will the primary scheduler partition in the host or the VM partition in the virtualised environment. IOW, it corresponds to the partition with VM ID == drv_info->vm_id. Fixes: 1b6bf41 ("firmware: arm_ffa: Add notification handling mechanism") Signed-off-by: Cristian Marussi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 59b2e24 commit 5ff30ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@ static void ffa_setup_partitions(void)
12371237
info = kzalloc(sizeof(*info), GFP_KERNEL);
12381238
if (!info)
12391239
return;
1240+
rwlock_init(&info->rw_lock);
12401241
xa_store(&drv_info->partition_info, drv_info->vm_id, info, GFP_KERNEL);
12411242
drv_info->partition_count++;
12421243
}

0 commit comments

Comments
 (0)