mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
ARM: mm: allow set_memory_*() to be used on the vmalloc region
We can allow modules to be loaded into the vmalloc region, where they should also benefit from the same protections as those loaded into the more efficient module region. Allow these functions to operate there as well. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
580218f967
commit
76fb051d42
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ static int change_memory_common(unsigned long addr, int numpages,
|
|||
if (!size)
|
||||
return 0;
|
||||
|
||||
if (!in_range(start, size, MODULES_VADDR, MODULES_END))
|
||||
if (!in_range(start, size, MODULES_VADDR, MODULES_END) &&
|
||||
!in_range(start, size, VMALLOC_START, VMALLOC_END))
|
||||
return -EINVAL;
|
||||
|
||||
data.set_mask = set_mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue