Skip to content

Commit

Permalink
powerpc/lib: Prepare code-patching for modules allocated outside vmal…
Browse files Browse the repository at this point in the history
…loc space

Use is_vmalloc_or_module_addr() instead of is_vmalloc_addr()

Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/7d884db0e5a6f521331639d8c0f13e520d5a4fef.1593428200.git.christophe.leroy@csgroup.eu
  • Loading branch information
chleroy authored and mpe committed Jul 26, 2020
1 parent 19a551b commit ccc8fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/lib/code-patching.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr)
unsigned long pfn;
int err;

if (is_vmalloc_addr(addr))
if (is_vmalloc_or_module_addr(addr))
pfn = vmalloc_to_pfn(addr);
else
pfn = __pa_symbol(addr) >> PAGE_SHIFT;
Expand Down

0 comments on commit ccc8fcf

Please sign in to comment.