]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/kprobes.c
[PATCH] kprobes: moves lock-unlock to non-arch kprobe_flush_task
[linux-2.6-omap-h63xx.git] / kernel / kprobes.c
index e8e0ae8a6e141ce6230f5f20dc6e2778d5b6c39f..dd42e717dd353202baa4948c4bb5dd46e08c3522 100644 (file)
@@ -229,7 +229,10 @@ struct kretprobe_instance *get_rp_inst_tsk(struct task_struct *tk)
  */
 void kprobe_flush_task(struct task_struct *tk)
 {
-       arch_kprobe_flush_task(tk, &kprobe_lock);
+       unsigned long flags = 0;
+       spin_lock_irqsave(&kprobe_lock, flags);
+       arch_kprobe_flush_task(tk);
+       spin_unlock_irqrestore(&kprobe_lock, flags);
 }
 
 /*