diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/entry-common.S | 3 | ||||
-rw-r--r-- | arch/arm/kernel/signal.c | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 82aaf0aeb85d..b669b49d7cc4 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -56,7 +56,10 @@ work_pending: | |||
56 | /* | 56 | /* |
57 | * TIF_SIGPENDING or TIF_NOTIFY_RESUME must've been set if we got here | 57 | * TIF_SIGPENDING or TIF_NOTIFY_RESUME must've been set if we got here |
58 | */ | 58 | */ |
59 | ldr r2, [sp, #S_PSR] | ||
59 | mov r0, sp @ 'regs' | 60 | mov r0, sp @ 'regs' |
61 | tst r2, #15 @ are we returning to user mode? | ||
62 | bne no_work_pending @ no? just leave, then... | ||
60 | mov r2, why @ 'syscall' | 63 | mov r2, why @ 'syscall' |
61 | tst r1, #_TIF_SIGPENDING @ delivering a signal? | 64 | tst r1, #_TIF_SIGPENDING @ delivering a signal? |
62 | movne why, #0 @ prevent further restarts | 65 | movne why, #0 @ prevent further restarts |
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 3b37c14c47f5..6b37d4ddf0b6 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -609,15 +609,6 @@ static void do_signal(struct pt_regs *regs, int syscall) | |||
609 | int signr; | 609 | int signr; |
610 | 610 | ||
611 | /* | 611 | /* |
612 | * We want the common case to go fast, which | ||
613 | * is why we may in certain cases get here from | ||
614 | * kernel mode. Just return without doing anything | ||
615 | * if so. | ||
616 | */ | ||
617 | if (!user_mode(regs)) | ||
618 | return; | ||
619 | |||
620 | /* | ||
621 | * If we were from a system call, check for system call restarting... | 612 | * If we were from a system call, check for system call restarting... |
622 | */ | 613 | */ |
623 | if (syscall) { | 614 | if (syscall) { |