projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19a551b
)
powerpc/lib: Prepare code-patching for modules allocated outside vmalloc space
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Mon, 29 Jun 2020 11:15:20 +0000
(11:15 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 26 Jul 2020 14:01:30 +0000
(
00:01
+1000)
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
arch/powerpc/lib/code-patching.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/lib/code-patching.c
b/arch/powerpc/lib/code-patching.c
index 0a051dfeb177321ff4bc807c2b67fd3f3a87e089..8c3934ea62209049aa192b81d4da7f13c31ea048 100644
(file)
--- 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;