developer | c992b60 | 2024-02-28 08:42:27 +0800 | [diff] [blame^] | 1 | From 617274ae97ae81a02848769292efa00f0d56c370 Mon Sep 17 00:00:00 2001 |
| 2 | From: Henry Yen <henry.yen@mediatek.com> |
| 3 | Date: Fri, 19 Jan 2024 11:11:19 +0800 |
| 4 | Subject: [PATCH 07/17] mtk: wifi: mt76: mt7996: initialize variable to avoid |
| 5 | unexpected IRQ handling |
| 6 | |
| 7 | Initialize the variable to avoid processing unexpected interrupts given from wrong source. |
| 8 | |
| 9 | Signed-off-by: Henry.Yen <henry.yen@mediatek.com> |
| 10 | |
| 11 | --- |
| 12 | mt7996/mmio.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/mt7996/mmio.c b/mt7996/mmio.c |
| 16 | index 341fa089..8fe56ed9 100644 |
| 17 | --- a/mt7996/mmio.c |
| 18 | +++ b/mt7996/mmio.c |
| 19 | @@ -519,7 +519,7 @@ static void mt7996_irq_tasklet(struct tasklet_struct *t) |
| 20 | struct mt7996_dev *dev = from_tasklet(dev, t, mt76.irq_tasklet); |
| 21 | struct mtk_wed_device *wed = &dev->mt76.mmio.wed; |
| 22 | struct mtk_wed_device *wed_hif2 = &dev->mt76.mmio.wed_hif2; |
| 23 | - u32 i, intr, mask, intr1; |
| 24 | + u32 i, intr, mask, intr1 = 0; |
| 25 | |
| 26 | if (dev->hif2 && mtk_wed_device_active(wed_hif2)) { |
| 27 | mtk_wed_device_irq_set_mask(wed_hif2, 0); |
| 28 | -- |
| 29 | 2.18.0 |
| 30 | |