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

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

Merge "mm: Fix false warnings from apply_to_page_range"

parents 84167555 f1aee4a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1977,7 +1977,7 @@ int apply_to_page_range(struct mm_struct *mm, unsigned long addr,
	unsigned long end = addr + size;
	int err;

	if (WARN_ON(addr >= end))
	if (WARN_ON(addr >= end - 1))
		return -EINVAL;

	pgd = pgd_offset(mm, addr);