diff --git a/[refs] b/[refs] index 6376915de88b..940b272f3bbc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 51e911e27690aecea01d4fe9cb22d38bdd0748ac +refs/heads/master: bc2f70151fe7a117dbe8347edc5a877e749572a3 diff --git a/trunk/kernel/kprobes.c b/trunk/kernel/kprobes.c index 9f8a3f25259a..3afd354c46f1 100644 --- a/trunk/kernel/kprobes.c +++ b/trunk/kernel/kprobes.c @@ -634,7 +634,7 @@ static int __kprobes __register_kprobe(struct kprobe *p, * avoid incrementing the module refcount, so as to allow * unloading of self probing modules. */ - if (calling_mod && calling_mod != probed_mod) { + if (calling_mod != probed_mod) { if (unlikely(!try_module_get(probed_mod))) { preempt_enable(); return -EINVAL;