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

Commit 510b3cd2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Make sure that mmap() hints falls inside the allowed range"

parents 5c96b760 a6a8aabd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3518,7 +3518,7 @@ static unsigned long _get_svm_area(struct kgsl_process_private *private,
		 * it as the start point for searching.
		 */
		addr = clamp_t(unsigned long, hint & ~(align - 1),
				start, end);
				start, (end - len) & ~(align - 1));

		vma = find_vma(current->mm, addr);