diff options
Diffstat (limited to 'arch/frv/kernel/signal.c')
-rw-r--r-- | arch/frv/kernel/signal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index bd13b57a5c9b..bab01298b58e 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -446,7 +446,7 @@ static int handle_signal(unsigned long sig, siginfo_t *info, | |||
446 | int ret; | 446 | int ret; |
447 | 447 | ||
448 | /* Are we from a system call? */ | 448 | /* Are we from a system call? */ |
449 | if (in_syscall(__frame)) { | 449 | if (__frame->syscallno != -1) { |
450 | /* If so, check system call restarting.. */ | 450 | /* If so, check system call restarting.. */ |
451 | switch (__frame->gr8) { | 451 | switch (__frame->gr8) { |
452 | case -ERESTART_RESTARTBLOCK: | 452 | case -ERESTART_RESTARTBLOCK: |
@@ -465,6 +465,7 @@ static int handle_signal(unsigned long sig, siginfo_t *info, | |||
465 | __frame->gr8 = __frame->orig_gr8; | 465 | __frame->gr8 = __frame->orig_gr8; |
466 | __frame->pc -= 4; | 466 | __frame->pc -= 4; |
467 | } | 467 | } |
468 | __frame->syscallno = -1; | ||
468 | } | 469 | } |
469 | 470 | ||
470 | /* Set up the stack frame */ | 471 | /* Set up the stack frame */ |
@@ -551,6 +552,7 @@ no_signal: | |||
551 | __frame->pc -= 4; | 552 | __frame->pc -= 4; |
552 | break; | 553 | break; |
553 | } | 554 | } |
555 | __frame->syscallno = -1; | ||
554 | } | 556 | } |
555 | 557 | ||
556 | /* if there's no signal to deliver, we just put the saved sigmask | 558 | /* if there's no signal to deliver, we just put the saved sigmask |