Skip to content

Commit e55c27e

Browse files
committedJul 11, 2022
mt76: mt7615: add missing bh-disable around rx napi schedule
napi_schedule() can call __raise_softirq_irqoff(), which can perform softirq handling, so it must not be called in a pure process context with BH enabled. Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent c0182aa commit e55c27e

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7615

1 file changed

+2
-0
lines changed
 

‎drivers/net/wireless/mediatek/mt76/mt7615/mac.c

+2
Original file line numberDiff line numberDiff line change
@@ -2094,8 +2094,10 @@ void mt7615_pm_wake_work(struct work_struct *work)
20942094
mt76_connac_pm_dequeue_skbs(mphy, &dev->pm);
20952095
mt76_worker_schedule(&mdev->sdio.txrx_worker);
20962096
} else {
2097+
local_bh_disable();
20972098
mt76_for_each_q_rx(mdev, i)
20982099
napi_schedule(&mdev->napi[i]);
2100+
local_bh_enable();
20992101
mt76_connac_pm_dequeue_skbs(mphy, &dev->pm);
21002102
mt76_queue_tx_cleanup(dev, mdev->q_mcu[MT_MCUQ_WM],
21012103
false);

0 commit comments

Comments
 (0)
Please sign in to comment.