aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/kprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/kprobes.c')
-rw-r--r--arch/i386/kernel/kprobes.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/i386/kernel/kprobes.c b/arch/i386/kernel/kprobes.c
index 2314d8d306fd..b8e2bae0ab4f 100644
--- a/arch/i386/kernel/kprobes.c
+++ b/arch/i386/kernel/kprobes.c
@@ -138,17 +138,14 @@ void arch_prepare_kretprobe(struct kretprobe *rp, struct pt_regs *regs)
138 } 138 }
139} 139}
140 140
141void arch_kprobe_flush_task(struct task_struct *tk, spinlock_t *kp_lock) 141void arch_kprobe_flush_task(struct task_struct *tk)
142{ 142{
143 unsigned long flags = 0;
144 struct kretprobe_instance *ri; 143 struct kretprobe_instance *ri;
145 spin_lock_irqsave(kp_lock, flags);
146 while ((ri = get_rp_inst_tsk(tk)) != NULL) { 144 while ((ri = get_rp_inst_tsk(tk)) != NULL) {
147 *((unsigned long *)(ri->stack_addr)) = 145 *((unsigned long *)(ri->stack_addr)) =
148 (unsigned long) ri->ret_addr; 146 (unsigned long) ri->ret_addr;
149 recycle_rp_inst(ri); 147 recycle_rp_inst(ri);
150 } 148 }
151 spin_unlock_irqrestore(kp_lock, flags);
152} 149}
153 150
154/* 151/*