Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 803dc3a9 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa: dma unmap of proper mapped size



For wlan ep's, unmap the dma memory with
proper mapped size.

Change-Id: Icc8499b519fdb2fd0c45ca3c210f9c1938be8f31
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent d18e6bf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1667,7 +1667,7 @@ static void ipa3_cleanup_wlan_rx_common_cache(void)
		&ipa3_ctx->wc_memb.wlan_comm_desc_list, link) {
		list_del(&rx_pkt->link);
		dma_unmap_single(ipa3_ctx->pdev, rx_pkt->data.dma_addr,
				IPA_WLAN_COMM_RX_POOL_LOW, DMA_FROM_DEVICE);
				IPA_WLAN_RX_BUFF_SZ, DMA_FROM_DEVICE);
		dev_kfree_skb_any(rx_pkt->data.skb);
		kmem_cache_free(ipa3_ctx->rx_pkt_wrapper_cache, rx_pkt);
		ipa3_ctx->wc_memb.wlan_comm_free_cnt--;