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

Commit 80bf9d10 authored by Ravi Gummadidala's avatar Ravi Gummadidala Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: add missing device pointer to DMA API call



This is to avoid a crash in ipa_setup_sys_pipe for WLAN
consumer clients.

Change-Id: I570bc3d7d014018ddea606424585efe8a83908f8
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent 6b6b4c37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1641,7 +1641,7 @@ static void ipa_alloc_wlan_rx_common_cache(u32 size)
			goto fail_skb_alloc;
		}
		ptr = skb_put(rx_pkt->data.skb, IPA_WLAN_RX_BUFF_SZ);
		rx_pkt->data.dma_addr = dma_map_single(NULL, ptr,
		rx_pkt->data.dma_addr = dma_map_single(ipa_ctx->pdev, ptr,
				IPA_WLAN_RX_BUFF_SZ, DMA_FROM_DEVICE);
		if (rx_pkt->data.dma_addr == 0 ||
				rx_pkt->data.dma_addr == ~0) {