Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44c7afff authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

frv: handling of restart into restart_syscall is fscked



do_signal() should place the syscall number in gr7, not gr8 when
handling ERESTART_WOULDBLOCK.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ad0acab4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -547,7 +547,7 @@ static void do_signal(void)
			break;
			break;


		case -ERESTART_RESTARTBLOCK:
		case -ERESTART_RESTARTBLOCK:
			__frame->gr8 = __NR_restart_syscall;
			__frame->gr7 = __NR_restart_syscall;
			__frame->pc -= 4;
			__frame->pc -= 4;
			break;
			break;
		}
		}