aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r--kernel/kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 9f8a3f25259a..3afd354c46f1 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -634,7 +634,7 @@ static int __kprobes __register_kprobe(struct kprobe *p,
634 * avoid incrementing the module refcount, so as to allow 634 * avoid incrementing the module refcount, so as to allow
635 * unloading of self probing modules. 635 * unloading of self probing modules.
636 */ 636 */
637 if (calling_mod && calling_mod != probed_mod) { 637 if (calling_mod != probed_mod) {
638 if (unlikely(!try_module_get(probed_mod))) { 638 if (unlikely(!try_module_get(probed_mod))) {
639 preempt_enable(); 639 preempt_enable();
640 return -EINVAL; 640 return -EINVAL;