diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kprobes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index e8e0ae8a6e14..dd42e717dd35 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -229,7 +229,10 @@ struct kretprobe_instance *get_rp_inst_tsk(struct task_struct *tk) | |||
229 | */ | 229 | */ |
230 | void kprobe_flush_task(struct task_struct *tk) | 230 | void kprobe_flush_task(struct task_struct *tk) |
231 | { | 231 | { |
232 | arch_kprobe_flush_task(tk, &kprobe_lock); | 232 | unsigned long flags = 0; |
233 | spin_lock_irqsave(&kprobe_lock, flags); | ||
234 | arch_kprobe_flush_task(tk); | ||
235 | spin_unlock_irqrestore(&kprobe_lock, flags); | ||
233 | } | 236 | } |
234 | 237 | ||
235 | /* | 238 | /* |