]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
m32r: fix breakage from "m32r: use generic ptrace_resume code"
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 24 Sep 2010 05:25:34 +0000 (06:25 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Sep 2010 20:54:19 +0000 (13:54 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m32r/kernel/ptrace.c

index e555091eb97cbcf8bbe261851be3b72e90e6075e..0021ade4cba8c86bf1d2fd348b283d8cac591955 100644 (file)
@@ -592,16 +592,17 @@ void user_enable_single_step(struct task_struct *child)
 
        if (access_process_vm(child, pc&~3, &insn, sizeof(insn), 0)
            != sizeof(insn))
-               break;
+               return -EIO;
 
        compute_next_pc(insn, pc, &next_pc, child);
        if (next_pc & 0x80000000)
-               break;
+               return -EIO;
 
        if (embed_debug_trap(child, next_pc))
-               break;
+               return -EIO;
 
        invalidate_cache();
+       return 0;
 }
 
 void user_disable_single_step(struct task_struct *child)