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

Commit 5e813292 authored by Ben Romberger's avatar Ben Romberger
Browse files

ASoC: msm: Change acdb_mmap size variable to unsigned



The acdb_mmap fuction does a size calculation but
stores the result in an int which makes negitive
numbers possible. Changing the variable to unsigned
ensures that the size used is never out of bounds.

Change-Id: Ie3cf4c0a1037e7f5fef29b8301becc6c19200ed6
CRs-fixed: 548145
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent a4623bef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1353,7 +1353,7 @@ done:
static int acdb_mmap(struct file *file, struct vm_area_struct *vma)
{
	int result = 0;
	int size = vma->vm_end - vma->vm_start;
	uint32_t size = vma->vm_end - vma->vm_start;

	pr_debug("%s\n", __func__);