mirror of
https://github.com/armbian/build.git
synced 2025-08-31 19:31:28 +02:00
* The initial state of a series of patches for sunxi-5.17 tag orange-pi-5.17-20220323-1423 * DEBUG for sunxi-5.17 * Add Armbian patches to 5.17 * Fix duplicate nodes for sun50i-h5-orangepi-pc2 * Fix reg_ahci_5v to status okay for bananapro board * Remove an unused patch for an unsupported sun50i-h6-tanix-tx6 board
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From 9c86eacc5b8d18997493cbabecf353cab5bc11b9 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= <ihuguet@redhat.com>
|
|
Date: Thu, 13 Jan 2022 10:42:53 +0100
|
|
Subject: [PATCH 427/456] rtw89: fix maybe uninitialized `qempty` variable
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Call to dle_dfi_qempty might fail, leaving qempty.qempty untouched, which
|
|
is latter used to control the for loop. If that happens, it's not
|
|
initialized anywhere.
|
|
|
|
Initialize it so the loop doesn't iterate unless it's modified by the
|
|
call to dle_dfi_qempty.
|
|
|
|
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
|
|
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
|
Link: https://lore.kernel.org/r/20220113094253.73370-1-ihuguet@redhat.com
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/mac.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
index 0a006f3c3742..2e95d9007c41 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/mac.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
@@ -172,6 +172,7 @@ static void rtw89_mac_dump_qta_lost(struct rtw89_dev *rtwdev)
|
|
|
|
qempty.dle_type = DLE_CTRL_TYPE_PLE;
|
|
qempty.grpsel = 0;
|
|
+ qempty.qempty = ~(u32)0;
|
|
ret = dle_dfi_qempty(rtwdev, &qempty);
|
|
if (ret)
|
|
rtw89_warn(rtwdev, "%s: query DLE fail\n", __func__);
|
|
--
|
|
2.34.1
|
|
|