Skip to content

Commit c0182aa

Browse files
committed
mt76: mt7915: add missing bh-disable around tx napi enable/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 12fba11 commit c0182aa

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/mac.c

+2
Original file line numberDiff line numberDiff line change
@@ -2183,8 +2183,10 @@ void mt7915_mac_reset_work(struct work_struct *work)
21832183

21842184
mt76_worker_enable(&dev->mt76.tx_worker);
21852185

2186+
local_bh_disable();
21862187
napi_enable(&dev->mt76.tx_napi);
21872188
napi_schedule(&dev->mt76.tx_napi);
2189+
local_bh_enable();
21882190

21892191
ieee80211_wake_queues(mt76_hw(dev));
21902192
if (ext_phy)

0 commit comments

Comments
 (0)