mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kprobes: Remove pointless BUG_ON() from add_new_kprobe()
Before calling add_new_kprobe(), aggr_probe's GONE flag and kprobe GONE flag are cleared. We don't need to worry about that flag at this point. 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/153666118298.21306.4915366706875652652.stgit@devbox Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
		
							parent
							
								
									d0555fc78f
								
							
						
					
					
						commit
						c72e6742f6
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -1259,8 +1259,6 @@ NOKPROBE_SYMBOL(cleanup_rp_inst);
 | 
				
			||||||
/* Add the new probe to ap->list */
 | 
					/* Add the new probe to ap->list */
 | 
				
			||||||
static int add_new_kprobe(struct kprobe *ap, struct kprobe *p)
 | 
					static int add_new_kprobe(struct kprobe *ap, struct kprobe *p)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	BUG_ON(kprobe_gone(ap) || kprobe_gone(p));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (p->post_handler)
 | 
						if (p->post_handler)
 | 
				
			||||||
		unoptimize_kprobe(ap, true);	/* Fall back to normal kprobe */
 | 
							unoptimize_kprobe(ap, true);	/* Fall back to normal kprobe */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue