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

Commit 70856d4f authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

adsprpc: Initialize VA of fastrpc dynamic heap buffer to Zero



As fastrpc dynamic heap buffer is allocated with DMA_ATTR_NO_KERNEL_MAPPING
there is no virtual mapping for this buffer, so initialize VA with Zero.

Change-Id: Id0fd62baa2a9a6510b909bdec69d02d0e4c8f9ab
Acked-by: default avatarChenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent ae56b6a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -790,7 +790,7 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd,
			goto bail;
		map->phys = (uintptr_t)region_phys;
		map->size = len;
		map->va = (uintptr_t)region_vaddr;
		map->va = 0;
	} else if (mflags == FASTRPC_DMAHANDLE_NOMAP) {
		VERIFY(err, !IS_ERR_OR_NULL(map->buf = dma_buf_get(fd)));
		if (err)