Commit 454530a9 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Kalle Valo
Browse files

ath10k: Fix the size used in a 'dma_free_coherent()' call in an error handling path



Update the size used in 'dma_free_coherent()' in order to match the one
used in the corresponding 'dma_alloc_coherent()'.

Fixes: 18630083 ("ath10k: fix shadow register implementation for WCN3990")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarRakesh Pillai <pillair@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200802122227.678637-1-christophe.jaillet@wanadoo.fr
parent 1885c0f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1567,7 +1567,7 @@ ath10k_ce_alloc_src_ring(struct ath10k *ar, unsigned int ce_id,
		ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries);
		ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries);
		if (ret) {
		if (ret) {
			dma_free_coherent(ar->dev,
			dma_free_coherent(ar->dev,
					  (nentries * sizeof(struct ce_desc_64) +
					  (nentries * sizeof(struct ce_desc) +
					   CE_DESC_RING_ALIGN),
					   CE_DESC_RING_ALIGN),
					  src_ring->base_addr_owner_space_unaligned,
					  src_ring->base_addr_owner_space_unaligned,
					  base_addr);
					  base_addr);