ath11k: fix DMA memory free in CE pipe cleanup
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Wed, 10 Nov 2021 16:21:30 +0000 (21:51 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Nov 2021 09:18:02 +0000 (11:18 +0200)
commit31aeaf547d7e3b64ba5d5442dabc530bdb9e216e
treec662da2873901bb2f2ae4366cb2b6d83467fe6c7
parent4c375743c5fe1ef84d1dd7269dd12585957f403e
ath11k: fix DMA memory free in CE pipe cleanup

In CE pipe cleanup, DMA memory gets freed by the aligned address
(base_addr_owner_space) which is wrong. It needs to be freed
by the address (base_addr_owner_space_unaligned) returned by
dma_alloc. So free the dma memory by the proper address.
This was found in code review.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00729-QCAHKSWPL_SILICONZ-3 v2

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1636561290-18966-1-git-send-email-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath11k/ce.c