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

Commit e2d5cc12 authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Pass correct buffer size for mapping gpuobj user memory



Current code incorrectly specifies buffer size as 0 for mapping
gpuobj user memory. This causes the map to fail because buffer
size is expected to be a non zero value. Fix this by passing the
correct size of the buffer to be mapped.

CRs-Fixed: 995378
Change-Id: I1a9aeb3f1dd67f014847322e5b14cba8775a82a4
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent f3ec66d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2199,7 +2199,7 @@ static long _gpuobj_map_useraddr(struct kgsl_device *device,
		return -EINVAL;

	return kgsl_setup_useraddr(device, pagetable, entry,
		(unsigned long) useraddr.virtaddr, 0, 0);
		(unsigned long) useraddr.virtaddr, 0, param->priv_len);
}

#ifdef CONFIG_DMA_SHARED_BUFFER