wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup
Fix device unregister memory leak and alway cleanup all configured
rx queues in mt76_dma_tx_cleanup routine.
Fixes: 52546e2778 ("wifi: mt76: add WED RX support to dma queue alloc")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
1b88b47e89
commit
3f7dda36e0
@@ -960,8 +960,7 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
|
||||
struct mt76_queue *q = &dev->q_rx[i];
|
||||
|
||||
netif_napi_del(&dev->napi[i]);
|
||||
if (FIELD_GET(MT_QFLAG_WED_TYPE, q->flags))
|
||||
mt76_dma_rx_cleanup(dev, q);
|
||||
mt76_dma_rx_cleanup(dev, q);
|
||||
}
|
||||
|
||||
mt76_free_pending_txwi(dev);
|
||||
|
||||
Reference in New Issue
Block a user