Skip to content

Commit ccc8fcf

Browse files
chleroympe
authored andcommitted
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: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/7d884db0e5a6f521331639d8c0f13e520d5a4fef.1593428200.git.christophe.leroy@csgroup.eu
1 parent 19a551b commit ccc8fcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/lib/code-patching.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr)
9393
unsigned long pfn;
9494
int err;
9595

96-
if (is_vmalloc_addr(addr))
96+
if (is_vmalloc_or_module_addr(addr))
9797
pfn = vmalloc_to_pfn(addr);
9898
else
9999
pfn = __pa_symbol(addr) >> PAGE_SHIFT;

0 commit comments

Comments
 (0)