diff options
| author | Christophe Leroy <[email protected]> | 2020-06-29 11:15:20 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-07-26 14:01:30 +0000 |
| commit | ccc8fcf72a6953fbfd6998999d622295f522b952 (patch) | |
| tree | ae5eab598d0d7d6eed2222b2d03fcafdae3152ce /arch/powerpc/lib/code-patching.c | |
| parent | powerpc/papr_scm: Make some symbols static (diff) | |
| download | kernel-ccc8fcf72a6953fbfd6998999d622295f522b952.tar.gz kernel-ccc8fcf72a6953fbfd6998999d622295f522b952.zip | |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/7d884db0e5a6f521331639d8c0f13e520d5a4fef.1593428200.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
| -rw-r--r-- | arch/powerpc/lib/code-patching.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index 0a051dfeb177..8c3934ea6220 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c @@ -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; |
