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

Commit 08b7be4f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: Fix null pointer dereference error"

parents bcd36e88 9e52c692
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ static int ipa3_nat_ipv6ct_mmap(
	/*
	 * Check if no smmu or non dma coherent
	 */
	if (!cb->valid || !dev_is_dma_coherent(cb->dev)) {
	if (cb && cb->dev && (!cb->valid || !dev_is_dma_coherent(cb->dev))) {

		IPADBG("Either smmu valid=%u and/or DMA coherent=%u false\n",
			   cb->valid, !dev_is_dma_coherent(cb->dev));