Patch "wifi: ath11k: initialize 'ret' in ath11k_qmi_load_file_target_mem()" 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

    wifi: ath11k: initialize 'ret' in ath11k_qmi_load_file_target_mem()

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:
     wifi-ath11k-initialize-ret-in-ath11k_qmi_load_file_t.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 371ccd9bf82f55f9816808c948cbbc04bdc5470f
Author: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>
Date:   Sat May 4 11:52:09 2024 -0700

    wifi: ath11k: initialize 'ret' in ath11k_qmi_load_file_target_mem()
    
    [ Upstream commit 199f149e97dc7be80e5eed4b232529c1d1aa8055 ]
    
    smatch flagged the following issue:
    
    drivers/net/wireless/ath/ath11k/qmi.c:2401 ath11k_qmi_load_file_target_mem() error: uninitialized symbol 'ret'.
    
    The reality is that 'ret' is initialized in every path through
    ath11k_qmi_load_file_target_mem() except one, the case where the input
    'len' is 0, and hence the "while (remaining)" loop is never entered.
    But to make sure this case is also handled, add an initializer to the
    declaration of 'ret'.
    
    No functional changes, compile tested only.
    
    Signed-off-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>
    Link: https://msgid.link/20240504-qmi_load_file_target_mem-v1-2-069fc44c45eb@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 01b02c03fa89..764cd320c6c1 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.c
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
@@ -2293,7 +2293,7 @@ static int ath11k_qmi_load_file_target_mem(struct ath11k_base *ab,
 	struct qmi_txn txn;
 	const u8 *temp = data;
 	void __iomem *bdf_addr = NULL;
-	int ret;
+	int ret = 0;
 	u32 remaining = len;
 
 	req = kzalloc(sizeof(*req), GFP_KERNEL);




[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