Skip to content

Commit

Permalink
mt76: mt7915: add missing bh-disable around tx napi enable/schedule
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nbd168 committed Jul 11, 2022
1 parent 12fba11 commit c0182aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7915/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2183,8 +2183,10 @@ void mt7915_mac_reset_work(struct work_struct *work)

mt76_worker_enable(&dev->mt76.tx_worker);

local_bh_disable();
napi_enable(&dev->mt76.tx_napi);
napi_schedule(&dev->mt76.tx_napi);
local_bh_enable();

ieee80211_wake_queues(mt76_hw(dev));
if (ext_phy)
Expand Down

0 comments on commit c0182aa

Please sign in to comment.