aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 34fc0416b135..b1e97e80a57c 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -527,7 +527,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
527 int ret; 527 int ret;
528 528
529 /* Are we from a system call? */ 529 /* Are we from a system call? */
530 if (regs->orig_ax >= 0) { 530 if ((long)regs->orig_ax >= 0) {
531 /* If so, check system call restarting.. */ 531 /* If so, check system call restarting.. */
532 switch (regs->ax) { 532 switch (regs->ax) {
533 case -ERESTART_RESTARTBLOCK: 533 case -ERESTART_RESTARTBLOCK:
@@ -625,7 +625,7 @@ static void do_signal(struct pt_regs *regs)
625 } 625 }
626 626
627 /* Did we come from a system call? */ 627 /* Did we come from a system call? */
628 if (regs->orig_ax >= 0) { 628 if ((long)regs->orig_ax >= 0) {
629 /* Restart the system call - no handlers present */ 629 /* Restart the system call - no handlers present */
630 switch (regs->ax) { 630 switch (regs->ax) {
631 case -ERESTARTNOHAND: 631 case -ERESTARTNOHAND: