Skip to content

Commit 8e172dc

Browse files
LorenzoBianconiopsiff
authored andcommitted
wifi: mt76: mt7996: fix uninitialized variable in mt7996_irq_tasklet()
[ Upstream commit 1ac710a ] Set intr1 to 0 in mt7996_irq_tasklet() in order to avoid possible uninitialized variable usage if wed is not active for hif2. Fixes: 83eafc9 ("wifi: mt76: mt7996: add wed tx support") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit bea4afe1317d7f0d2f341bdaf36503248b4a895d)
1 parent f910873 commit 8e172dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/wireless/mediatek/mt76/mt7996

drivers/net/wireless/mediatek/mt76/mt7996/mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static void mt7996_irq_tasklet(struct tasklet_struct *t)
519519
struct mt7996_dev *dev = from_tasklet(dev, t, mt76.irq_tasklet);
520520
struct mtk_wed_device *wed = &dev->mt76.mmio.wed;
521521
struct mtk_wed_device *wed_hif2 = &dev->mt76.mmio.wed_hif2;
522-
u32 i, intr, mask, intr1;
522+
u32 i, intr, mask, intr1 = 0;
523523

524524
if (dev->hif2 && mtk_wed_device_active(wed_hif2)) {
525525
mtk_wed_device_irq_set_mask(wed_hif2, 0);

0 commit comments

Comments
 (0)