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

Commit 556cd79d authored by Ben Romberger's avatar Ben Romberger
Browse files

msm: audio: qdsp6v2: 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: Iffd9c1440d2f28b703a77993fdbb3ccd18f30694
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
@@ -887,7 +887,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__);