From: Dedy Lansky <[email protected]>

edma_rx_swtail dma memory free is missing.
Add this part of Rx desc ring free.

Signed-off-by: Dedy Lansky <[email protected]>
Signed-off-by: Maya Erez <[email protected]>
---
 drivers/net/wireless/ath/wil6210/txrx_edma.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/wil6210/txrx_edma.c 
b/drivers/net/wireless/ath/wil6210/txrx_edma.c
index c387738..48098ae 100644
--- a/drivers/net/wireless/ath/wil6210/txrx_edma.c
+++ b/drivers/net/wireless/ath/wil6210/txrx_edma.c
@@ -428,6 +428,9 @@ static void wil_ring_free_edma(struct wil6210_priv *wil, 
struct wil_ring *ring)
                             &ring->pa, ring->ctx);
 
                wil_move_all_rx_buff_to_free_list(wil, ring);
+               dma_free_coherent(dev, sizeof(*ring->edma_rx_swtail.va),
+                                 ring->edma_rx_swtail.va,
+                                 ring->edma_rx_swtail.pa);
                goto out;
        }
 
-- 
1.9.1

Reply via email to