mirror of
https://github.com/armbian/build.git
synced 2025-08-12 14:16:57 +02:00
* Add megous files for 5.16, tag orange-pi-5.16-20220216-2000 * Optimize the selection of a set of patches * Remove unused patches * Fix the state on the version tag=v5.16.11 Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From 1c7a2e2ce27fb24aaef20c676c6778268fe01066 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 545/562] 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
|
|
|