]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:51 +0000 (09:33 +0100)
commita2defb7262d71d85e187c6414c09bba73633f370
tree5ada928c94eb2e270c87983f697cabc97ce56e46
parentd713ad7ae2f017a363d22d85d5ac2968ddd52a39
wifi: mt76: dma: free rx_head in mt76_dma_rx_cleanup

[ Upstream commit f414a60db9ebc2b2d326959a7d458f2c26ecedf4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/dma.c