diff options
-rw-r--r-- | arch/x86/kernel/alternative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index df4099dc1c68..7ab3a9774763 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c | |||
@@ -515,7 +515,7 @@ void *__kprobes text_poke(void *addr, const void *opcode, size_t len) | |||
515 | BUG_ON(len > sizeof(long)); | 515 | BUG_ON(len > sizeof(long)); |
516 | BUG_ON((((long)addr + len - 1) & ~(sizeof(long) - 1)) | 516 | BUG_ON((((long)addr + len - 1) & ~(sizeof(long) - 1)) |
517 | - ((long)addr & ~(sizeof(long) - 1))); | 517 | - ((long)addr & ~(sizeof(long) - 1))); |
518 | if (kernel_text_address((unsigned long)addr)) { | 518 | if (core_kernel_text((unsigned long)addr)) { |
519 | struct page *pages[2] = { virt_to_page(addr), | 519 | struct page *pages[2] = { virt_to_page(addr), |
520 | virt_to_page(addr + PAGE_SIZE) }; | 520 | virt_to_page(addr + PAGE_SIZE) }; |
521 | if (!pages[1]) | 521 | if (!pages[1]) |