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: Mika Penttilä mika.penttila@nextfour.com Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Родитель
c7edd7f99c
Коммит
f474c8c857
|
@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages,
|
||||||
WARN_ON_ONCE(1);
|
WARN_ON_ONCE(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!numpages)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (start < MODULES_VADDR || start >= MODULES_END)
|
if (start < MODULES_VADDR || start >= MODULES_END)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче