diff options
Diffstat (limited to 'arch/mips/kernel/kprobes.c')
| -rw-r--r-- | arch/mips/kernel/kprobes.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/kernel/kprobes.c b/arch/mips/kernel/kprobes.c index 158467da9bc..12bc4ebdf55 100644 --- a/arch/mips/kernel/kprobes.c +++ b/arch/mips/kernel/kprobes.c @@ -307,7 +307,7 @@ static void prepare_singlestep(struct kprobe *p, struct pt_regs *regs,  /*   * Called after single-stepping.  p->addr is the address of the   * instruction whose first byte has been replaced by the "break 0" - * instruction.  To avoid the SMP problems that can occur when we + * instruction.	 To avoid the SMP problems that can occur when we   * temporarily put back the original opcode to single-step, we   * single-stepped a copy of the instruction.  The address of this   * copy is p->ainsn.insn. @@ -535,7 +535,7 @@ void jprobe_return_end(void);  void __kprobes jprobe_return(void)  { -	/* Assembler quirk necessitates this '0,code' business.  */ +	/* Assembler quirk necessitates this '0,code' business.	 */  	asm volatile(  		"break 0,%0\n\t"  		".globl jprobe_return_end\n" @@ -598,7 +598,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p,  {  	struct kretprobe_instance *ri = NULL;  	struct hlist_head *head, empty_rp; -	struct hlist_node *node, *tmp; +	struct hlist_node *tmp;  	unsigned long flags, orig_ret_address = 0;  	unsigned long trampoline_address = (unsigned long)kretprobe_trampoline; @@ -614,11 +614,11 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p,  	 * We can handle this because:  	 *     - instances are always inserted at the head of the list  	 *     - when multiple return probes are registered for the same -	 *       function, the first instance's ret_addr will point to the -	 *       real return address, and all the rest will point to -	 *       kretprobe_trampoline +	 *	 function, the first instance's ret_addr will point to the +	 *	 real return address, and all the rest will point to +	 *	 kretprobe_trampoline  	 */ -	hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { +	hlist_for_each_entry_safe(ri, tmp, head, hlist) {  		if (ri->task != current)  			/* another task is sharing our hash bucket */  			continue; @@ -645,7 +645,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p,  	kretprobe_hash_unlock(current, &flags);  	preempt_enable_no_resched(); -	hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) { +	hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) {  		hlist_del(&ri->hlist);  		kfree(ri);  	}  |