Patch "firmware: arm_ffa: Set handle field to zero in memory descriptor" has been added to the 6.1-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: Set handle field to zero in memory descriptor

to the 6.1-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-set-handle-field-to-zero-in-memory-.patch
and it can be found in the queue-6.1 subdirectory.

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



commit c458e85e94b7c31a6e370bb07466e3be0b00e22f
Author: Balint Dobszay <balint.dobszay@xxxxxxx>
Date:   Thu Jun 1 16:07:49 2023 +0200

    firmware: arm_ffa: Set handle field to zero in memory descriptor
    
    [ Upstream commit 3aa0519a4780f1b8e11966bd879d4a2934ba455f ]
    
    As described in the commit 111a833dc5cb ("firmware: arm_ffa: Set
    reserved/MBZ fields to zero in the memory descriptors") some fields in
    the memory descriptor have to be zeroed explicitly. The handle field is
    one of these, but it was left out from that change, fix this now.
    
    Fixes: 111a833dc5cb ("firmware: arm_ffa: Set reserved/MBZ fields to zero in the memory descriptors")
    Reported-by: Imre Kis <imre.kis@xxxxxxx>
    Signed-off-by: Balint Dobszay <balint.dobszay@xxxxxxx>
    Link: https://lore.kernel.org/r/20230601140749.93812-1-balint.dobszay@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 5904a679d3512..c37e823590055 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -505,6 +505,7 @@ ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize,
 		ep_mem_access->flag = 0;
 		ep_mem_access->reserved = 0;
 	}
+	mem_region->handle = 0;
 	mem_region->reserved_0 = 0;
 	mem_region->reserved_1 = 0;
 	mem_region->ep_count = args->nattrs;



[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