Patch "firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get()" has been added to the 6.8-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: Fix the partition ID check in ffa_notification_info_get()

to the 6.8-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-fix-the-partition-id-check-in-ffa_n.patch
and it can be found in the queue-6.8 subdirectory.

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



commit d4158f79d55e1231144bb03be441ec49a3f72b55
Author: Jens Wiklander <jens.wiklander@xxxxxxxxxx>
Date:   Mon Mar 11 12:07:00 2024 +0100

    firmware: arm_ffa: Fix the partition ID check in ffa_notification_info_get()
    
    [ Upstream commit 1a4bd2b128fb5ca62e4d1c5ca298d3d06b9c1e8e ]
    
    FFA_NOTIFICATION_INFO_GET retrieves information about pending
    notifications. Notifications can be either global or per VCPU. Global
    notifications are reported with the partition ID only in the list of
    endpoints with pending notifications. ffa_notification_info_get()
    incorrectly expect no ID at all for global notifications. Fix this by
    checking for ID = 1 instead of ID = 0.
    
    Fixes: 3522be48d82b ("firmware: arm_ffa: Implement the NOTIFICATION_INFO_GET interface")
    Signed-off-by: Jens Wiklander <jens.wiklander@xxxxxxxxxx>
    Reviewed-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240311110700.2367142-1-jens.wiklander@xxxxxxxxxx
    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 f2556a8e94015..9bc2e10381afd 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -790,7 +790,7 @@ static void ffa_notification_info_get(void)
 
 			part_id = packed_id_list[ids_processed++];
 
-			if (!ids_count[list]) { /* Global Notification */
+			if (ids_count[list] == 1) { /* Global Notification */
 				__do_sched_recv_cb(part_id, 0, false);
 				continue;
 			}




[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