tx: add missing locking in mt76_txq_schedule_all

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-03-04 12:40:20 +01:00
parent 7e9d52f998
commit 4554e8a23d
+7 -2
View File
@@ -429,8 +429,13 @@ void mt76_txq_schedule_all(struct mt76_dev *dev)
{
int i;
for (i = 0; i <= MT_TXQ_BK; i++)
mt76_txq_schedule(dev, &dev->q_tx[i]);
for (i = 0; i <= MT_TXQ_BK; i++) {
struct mt76_queue *q = &dev->q_tx[i];
spin_lock_bh(&q->lock);
mt76_txq_schedule(dev, q);
spin_unlock_bh(&q->lock);
}
}
EXPORT_SYMBOL_GPL(mt76_txq_schedule_all);