mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 07:22:54 +00:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
|
From b96ab5e62010887a8abee43dbcccf6f4b3fcb269 Mon Sep 17 00:00:00 2001
|
||
|
From: Lorenzo Bianconi <lorenzo@kernel.org>
|
||
|
Date: Tue, 19 Mar 2024 13:05:36 +0100
|
||
|
Subject: [PATCH] wifi: mt76: mt7996: fix uninitialized variable in
|
||
|
mt7996_irq_tasklet()
|
||
|
|
||
|
Set intr1 to 0 in mt7996_irq_tasklet() in order to avoid possible
|
||
|
uninitialized variable usage if wed is not active for hif2.
|
||
|
|
||
|
Fixes: 83eafc9251d6 ("wifi: mt76: mt7996: add wed tx support")
|
||
|
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
|
||
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||
|
---
|
||
|
mt7996/mmio.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/mt7996/mmio.c
|
||
|
+++ b/mt7996/mmio.c
|
||
|
@@ -499,7 +499,7 @@ static void mt7996_irq_tasklet(struct ta
|
||
|
struct mt7996_dev *dev = from_tasklet(dev, t, mt76.irq_tasklet);
|
||
|
struct mtk_wed_device *wed = &dev->mt76.mmio.wed;
|
||
|
struct mtk_wed_device *wed_hif2 = &dev->mt76.mmio.wed_hif2;
|
||
|
- u32 i, intr, mask, intr1;
|
||
|
+ u32 i, intr, mask, intr1 = 0;
|
||
|
|
||
|
if (dev->hif2 && mtk_wed_device_active(wed_hif2)) {
|
||
|
mtk_wed_device_irq_set_mask(wed_hif2, 0);
|