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

Commit 4975ad04 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: Fix false warnings from apply_to_page_range"

parents 4f108b8f c95e70e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2271,7 +2271,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);