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

Commit f474c8c8 authored by Mika Penttilä's avatar Mika Penttilä Committed by Russell King
Browse files

ARM: 8544/1: set_memory_xx fixes



Allow zero size updates. This makes set_memory_xx() consistent with x86, s390 and arm64 and makes apply_to_page_range() not to BUG() when loading modules.

Signed-off-by: default avatarMika Penttilä <mika.penttila@nextfour.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c7edd7f9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages,
		WARN_ON_ONCE(1);
	}

	if (!numpages)
		return 0;

	if (start < MODULES_VADDR || start >= MODULES_END)
		return -EINVAL;