diff options
author | Roel Kluin | 2009-10-27 00:50:23 +0100 |
---|---|---|
committer | Linus Torvalds | 2009-10-29 15:39:32 +0100 |
commit | c896a2e0d80bbd5731f76609625a0cb7c9864a44 (patch) | |
tree | 1784d8030f500d213c644ebcbc359d3cfaba90b5 /arch/frv/kernel | |
parent | mm: don't call pte_unmap() against an improper pte (diff) | |
download | kernel-qcow2-linux-c896a2e0d80bbd5731f76609625a0cb7c9864a44.tar.gz kernel-qcow2-linux-c896a2e0d80bbd5731f76609625a0cb7c9864a44.tar.xz kernel-qcow2-linux-c896a2e0d80bbd5731f76609625a0cb7c9864a44.zip |
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/kernel')
-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) 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: |