Patch "firmware: arm_ffa: Add missing rwlock_init() for the driver partition" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    firmware: arm_ffa: Add missing rwlock_init() for the driver partition

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     firmware-arm_ffa-add-missing-rwlock_init-for-the-dri.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0798ad1d14fa306b796e56cd485d0b907c0a754c
Author: Cristian Marussi <cristian.marussi@xxxxxxx>
Date:   Mon Jan 8 12:34:12 2024 +0000

    firmware: arm_ffa: Add missing rwlock_init() for the driver partition
    
    [ Upstream commit 5ff30ade16cd9efc2466d3ea22bbaf370772941a ]
    
    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: 1b6bf41b7a65 ("firmware: arm_ffa: Add notification handling mechanism")
    Signed-off-by: Cristian Marussi <cristian.marussi@xxxxxxx>
    Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-2-75bf7035bc50@xxxxxxx
    Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
index ed1d6a24934e..8df92c9521f4 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -1237,6 +1237,7 @@ static void ffa_setup_partitions(void)
 	info = kzalloc(sizeof(*info), GFP_KERNEL);
 	if (!info)
 		return;
+	rwlock_init(&info->rw_lock);
 	xa_store(&drv_info->partition_info, drv_info->vm_id, info, GFP_KERNEL);
 	drv_info->partition_count++;
 }




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux