wil6210: free edma_rx_swtail upon reset
authorDedy Lansky <dlansky@codeaurora.org>
Thu, 28 Feb 2019 09:34:57 +0000 (11:34 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 3 Apr 2019 12:35:07 +0000 (15:35 +0300)
edma_rx_swtail dma memory free is missing.
Add this part of Rx desc ring free.

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/txrx_edma.c

index c38773878ae3aaf98c5dad56667c0eb6cc65f57b..48098ae626771bc69fcdbdb3df74ebceac7c7624 100644 (file)
@@ -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;
        }