frv: double syscall restarts, syscall restart in sigreturn()
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 20 Sep 2010 14:13:25 +0000 (15:13 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Sep 2010 17:44:38 +0000 (10:44 -0700)
commited1cde68365c1251b920900c51e73675ff38dc66
tree7f43fcfef76bc3d715db22ab575efadeefaf8739
parent44c7afffa429a7cdcd1755019ab76566ff41e66d
frv: double syscall restarts, syscall restart in sigreturn()

We need to make sure that only the first do_signal() to be handled on
the way out syscall will bother with syscall restarts; additionally, the
check on the "signal has user handler" path had been wrong - compare
with restart prevention in sigreturn()...

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