]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: kprobes: Fix up a preemption imbalance on jprobe return.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 09:14:50 +0000 (18:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 09:14:50 +0000 (18:14 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/kprobes.c

index 75accf9b4209b64f7adc6abfafd5e552aaf5df1e..f0e1c78d0bff566a8047657a8e87d402163d7383 100644 (file)
@@ -542,6 +542,7 @@ int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)
                       MIN_STACK_SIZE(stack_addr));
 
                kcb->kprobe_status = KPROBE_HIT_SS;
+               preempt_enable_no_resched();
                return 1;
        }
        return 0;