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

Commit a7eb6a16 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: Check the size while working at SVM boundary"

parents 3071ddf7 fa63766c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1710,7 +1710,7 @@ static uint64_t _get_unmapped_area_topdown(struct kgsl_pagetable *pagetable,
	}

	/* If we get here then there are no more entries in the region */
	if (((end - size) & mask) >= bottom)
	if ((end > size) && (((end - size) & mask) >= bottom))
		return (end - size) & mask;

	return (uint64_t) -ENOMEM;