Skip to content

Commit

Permalink
wil6210: free edma_rx_swtail upon reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dedy Lansky authored and Kalle Valo committed Apr 3, 2019
1 parent 7b83463 commit 29ca376
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/wil6210/txrx_edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 29ca376

Please sign in to comment.