]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
CRIS: v32: Correct auto-restart of syscalls
authorJesper Nilsson <jesper.nilsson@axis.com>
Tue, 3 Aug 2010 13:55:48 +0000 (15:55 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 11:02:01 +0000 (13:02 +0200)
Register number was incorrect in syscalls
that go via the restartblock (e.g, poll).

Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v32/kernel/signal.c

index 0b7e3f143281c435e5ff5d836fbb23b762758c5d..b3a05ae56214dd66ca345b11d6e7d672e5ac2fff 100644 (file)
@@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs)
                }
 
                if (regs->r10 == -ERESTART_RESTARTBLOCK){
-                       regs->r10 = __NR_restart_syscall;
+                       regs->r9 = __NR_restart_syscall;
                        regs->erp -= 2;
                }
        }