diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-09-11 19:19:14 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-09-12 08:01:15 +0200 |
commit | d0555fc78fdba5646a460e83bd2d8249c539bb89 (patch) | |
tree | 627fd5f7c7c62b5dac465cc8c0342740380e4d07 /kernel/kprobes.c | |
parent | 2766d2ee960c52adc415931130dd6910158dd04d (diff) | |
download | linux-d0555fc78fdba5646a460e83bd2d8249c539bb89.tar.bz2 |
kprobes: Remove pointless BUG_ON() from disarming process
All aggr_probes at this line are already disarmed by
disable_kprobe() or checked by kprobe_disarmed().
So this BUG_ON() is pointless, remove it.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S . Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Naveen N . Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/153666115463.21306.8799008438116029806.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index ab257be4d924..d1edd8d5641e 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1704,7 +1704,6 @@ noclean: return 0; disarmed: - BUG_ON(!kprobe_disarmed(ap)); hlist_del_rcu(&ap->hlist); return 0; } |