diff options
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r-- | arch/x86/kernel/alternative.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 60299f61843f..65c7857a90dd 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c | |||
@@ -519,6 +519,7 @@ void *__kprobes text_poke(void *addr, const void *opcode, size_t len) | |||
519 | pages[1] = vmalloc_to_page(addr + PAGE_SIZE); | 519 | pages[1] = vmalloc_to_page(addr + PAGE_SIZE); |
520 | } else { | 520 | } else { |
521 | pages[0] = virt_to_page(addr); | 521 | pages[0] = virt_to_page(addr); |
522 | WARN_ON(!PageReserved(pages[0])); | ||
522 | pages[1] = virt_to_page(addr + PAGE_SIZE); | 523 | pages[1] = virt_to_page(addr + PAGE_SIZE); |
523 | } | 524 | } |
524 | BUG_ON(!pages[0]); | 525 | BUG_ON(!pages[0]); |