The following commit has been merged in the linux branch: commit c896a2e0d80bbd5731f76609625a0cb7c9864a44 Author: Roel Kluin roel.kluin@gmail.com Date: Mon Oct 26 16:50:23 2009 -0700
frv: fix check on unsigned in do_signal()
syscallno is unsigned
Signed-off-by: Roel Kluin roel.kluin@gmail.com Signed-off-by: David Howells dhowells@redhat.com Signed-off-by: Andrew Morton akpm@linux-foundation.org Signed-off-by: Linus Torvalds torvalds@linux-foundation.org
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 6b0a2b6..0974c0e 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c @@ -527,7 +527,7 @@ static void do_signal(void)
no_signal: /* Did we come from a system call? */ - if (__frame->syscallno >= 0) { + if (__frame->syscallno != -1) { /* Restart the system call - no handlers present */ switch (__frame->gr8) { case -ERESTARTNOHAND: