From f0573e15b4654713e4ba69ad78c17befc799d88e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Oct 2015 14:26:11 +0200 Subject: [PATCH] tx: free txq skbs without holding the hw queue lock Signed-off-by: Felix Fietkau --- tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tx.c b/tx.c index bc4a1574..d1cea40d 100644 --- a/tx.c +++ b/tx.c @@ -478,9 +478,8 @@ void mt76_txq_remove(struct mt76_dev *dev, struct ieee80211_txq *txq) spin_lock_bh(&hwq->lock); if (!list_empty(&mtxq->list)) list_del(&mtxq->list); + spin_unlock_bh(&hwq->lock); while ((skb = skb_dequeue(&mtxq->retry_q)) != NULL) ieee80211_free_txskb(dev->hw, skb); - - spin_unlock_bh(&hwq->lock); }