Patch "wifi: ath11k: Fix qmi_msg_handler data structure initialization" has been added to the 6.0-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

    wifi: ath11k: Fix qmi_msg_handler data structure initialization

to the 6.0-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:
     wifi-ath11k-fix-qmi_msg_handler-data-structure-initi.patch
and it can be found in the queue-6.0 subdirectory.

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



commit bc388c183e60b6b0165b60556b7ce3cddb575332
Author: Rahul Bhattacharjee <quic_rbhattac@xxxxxxxxxxx>
Date:   Fri Oct 21 14:31:26 2022 +0530

    wifi: ath11k: Fix qmi_msg_handler data structure initialization
    
    [ Upstream commit ed3725e15a154ebebf44e0c34806c57525483f92 ]
    
    qmi_msg_handler is required to be null terminated by QMI module.
    There might be a case where a handler for a msg id is not present in the
    handlers array which can lead to infinite loop while searching the handler
    and therefore out of bound access in qmi_invoke_handler().
    Hence update the initialization in qmi_msg_handler data structure.
    
    Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1
    
    Signed-off-by: Rahul Bhattacharjee <quic_rbhattac@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221021090126.28626-1-quic_rbhattac@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c
index e6ced8597e1d..539134a6e9d9 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.c
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
@@ -3083,6 +3083,9 @@ static const struct qmi_msg_handler ath11k_qmi_msg_handlers[] = {
 			sizeof(struct qmi_wlfw_fw_init_done_ind_msg_v01),
 		.fn = ath11k_qmi_msg_fw_init_done_cb,
 	},
+
+	/* end of list */
+	{},
 };
 
 static int ath11k_qmi_ops_new_server(struct qmi_handle *qmi_hdl,



[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