Commit ccc8fcf7 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/lib: Prepare code-patching for modules allocated outside vmalloc space

Use is_vmalloc_or_module_addr() instead of is_vmalloc_addr()
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7d884db0e5a6f521331639d8c0f13e520d5a4fef.1593428200.git.christophe.leroy@csgroup.eu
parent 19a551b2
...@@ -93,7 +93,7 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr) ...@@ -93,7 +93,7 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr)
unsigned long pfn; unsigned long pfn;
int err; int err;
if (is_vmalloc_addr(addr)) if (is_vmalloc_or_module_addr(addr))
pfn = vmalloc_to_pfn(addr); pfn = vmalloc_to_pfn(addr);
else else
pfn = __pa_symbol(addr) >> PAGE_SHIFT; pfn = __pa_symbol(addr) >> PAGE_SHIFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment