Messages in this thread Patch in this message |  | | | Date | Tue, 20 Oct 2009 20:04:08 +0200 | | From | Roel Kluin <> | | Subject | [PATCH] frv: Fix check on unsigned in do_signal() |
| |
syscallno is unsigned
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- Was this maybe intended? 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:
|  |