]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e21d6e221ce6d56cd0e1e39b3d9e63ba3058707
treec662da2873901bb2f2ae4366cb2b6d83467fe6c7
parentff8d95fbf0dabc3de099bff7c6b5d1235592bdf3
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