wil6210: fix freeing of rx buffers in EDMA mode
authorAhmad Masri <amasri@codeaurora.org>
Wed, 31 Oct 2018 08:52:23 +0000 (10:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 12:05:14 +0000 (13:05 +0100)
commite5641f02dc9e28e6710cf53d218bfa209a7718de
tree060ec0283b1b06c576f67d5fc908990b0dcf7f14
parentd8ab4185ea5547efe53a0a0c99357aa84a15344b
wil6210: fix freeing of rx buffers in EDMA mode

[ Upstream commit 6470f31927b46846d957628b719dcfda05446664 ]

After being associated with some EDMA rx traffic, upon "down" driver
doesn't free all skbs in the rx ring.
Modify wil_move_all_rx_buff_to_free_list to loop on active list of rx
buffers, unmap the physical memory and free the skb.

Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wil6210/txrx_edma.c