frv: handling of restart into restart_syscall is fscked
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 20 Sep 2010 14:13:19 +0000 (15:13 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Sep 2010 17:44:38 +0000 (10:44 -0700)
do_signal() should place the syscall number in gr7, not gr8 when
handling ERESTART_WOULDBLOCK.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/frv/kernel/signal.c

index 48203c68e39fe6eaf37e9dc17223a63aa2a11f11..bd13b57a5c9b046a825f8b2907888d58e7e5b27b 100644 (file)
@@ -547,7 +547,7 @@ no_signal:
                        break;
 
                case -ERESTART_RESTARTBLOCK:
-                       __frame->gr8 = __NR_restart_syscall;
+                       __frame->gr7 = __NR_restart_syscall;
                        __frame->pc -= 4;
                        break;
                }