Patch "wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-mt76-dma-fix-memory-leak-running-mt76_dma_tx_cl.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 01f6daa8b25ed6f7a77617274198c0982e1cf030
Author: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
Date:   Sun Jan 1 12:50:05 2023 +0100

    wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup
    
    [ Upstream commit 3f7dda36e0b6dfa2cd26191f754ba061ab8191f2 ]
    
    Fix device unregister memory leak and alway cleanup all configured
    rx queues in mt76_dma_tx_cleanup routine.
    
    Fixes: 52546e27787e ("wifi: mt76: add WED RX support to dma queue alloc")
    Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c
index 06161815c180e..dee4449de9082 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/dma.c
@@ -975,8 +975,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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux