OSDN Git Service

wifi: mt76: dma: free rx_head in mt76_dma_rx_cleanup
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 1 Jan 2023 11:47:57 +0000 (12:47 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2023 13:47:16 +0000 (14:47 +0100)
commit1b88b47e898edef0e56e3a2f4e49f052a136153d
tree8abef3506cef061ded4e1a088ba5d6a70a774e85
parentda5b4d93e141b52c5a71d0c41a042d1bcaf70d2e
wifi: mt76: dma: free rx_head in mt76_dma_rx_cleanup

Free rx_head skb in mt76_dma_rx_cleanup routine in order to avoid
possible memory leak at module unload.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c