diff options
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 6fe9dc6d1a81..ef177d653b2c 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -686,7 +686,7 @@ int __kprobes register_kprobe(struct kprobe *p) | |||
686 | p->addr = addr; | 686 | p->addr = addr; |
687 | 687 | ||
688 | preempt_disable(); | 688 | preempt_disable(); |
689 | if (!__kernel_text_address((unsigned long) p->addr) || | 689 | if (!kernel_text_address((unsigned long) p->addr) || |
690 | in_kprobes_functions((unsigned long) p->addr)) { | 690 | in_kprobes_functions((unsigned long) p->addr)) { |
691 | preempt_enable(); | 691 | preempt_enable(); |
692 | return -EINVAL; | 692 | return -EINVAL; |