diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-10-26 19:50:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-29 10:39:32 -0400 |
commit | c896a2e0d80bbd5731f76609625a0cb7c9864a44 (patch) | |
tree | 1784d8030f500d213c644ebcbc359d3cfaba90b5 /arch/frv | |
parent | c36987e2ef32e1bb7850379515f21187cba44754 (diff) |
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>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 6b0a2b6fed6a..0974c0ecc594 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -527,7 +527,7 @@ static void do_signal(void) | |||
527 | 527 | ||
528 | no_signal: | 528 | no_signal: |
529 | /* Did we come from a system call? */ | 529 | /* Did we come from a system call? */ |
530 | if (__frame->syscallno >= 0) { | 530 | if (__frame->syscallno != -1) { |
531 | /* Restart the system call - no handlers present */ | 531 | /* Restart the system call - no handlers present */ |
532 | switch (__frame->gr8) { | 532 | switch (__frame->gr8) { |
533 | case -ERESTARTNOHAND: | 533 | case -ERESTARTNOHAND: |