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

Commit 2f867742 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: Add missing check for size against lower VA"

parents e5518041 be5884a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1661,7 +1661,7 @@ static uint64_t _get_unmapped_area_topdown(struct kgsl_pagetable *pagetable,
		 * the bottom of the previous one
		 * the bottom of the previous one
		 */
		 */


		if (offset < end) {
		if ((end > size) && (offset < end)) {
			uint64_t chunk = (end - size) & mask;
			uint64_t chunk = (end - size) & mask;


			if (chunk >= offset)
			if (chunk >= offset)