linux-mips
[Top] [All Lists]

[PATCH 1/5] mips: don't block signals if we'd failed setting sigframe up

To: ralf@linux-mips.org
Subject: [PATCH 1/5] mips: don't block signals if we'd failed setting sigframe up
From: Al Viro <viro@ftp.linux.org.uk>
Date: Tue, 28 Sep 2010 18:50:17 +0100
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Resent-date: Thu, 14 Oct 2010 11:41:42 +0100
Resent-from: ralf@linux-mips.org
Resent-message-id: <20101014104142.GA28911@linux-mips.org>
Resent-to: linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Heirloom mailx 12.4 7/29/08
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 arch/mips/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index 2099d5a..b3273ae 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -575,6 +575,9 @@ static int handle_signal(unsigned long sig, siginfo_t *info,
                ret = abi->setup_frame(vdso + abi->signal_return_offset,
                                       ka, regs, sig, oldset);
 
+       if (ret)
+               return ret;
+
        spin_lock_irq(&current->sighand->siglock);
        sigorsets(&current->blocked, &current->blocked, &ka->sa.sa_mask);
        if (!(ka->sa.sa_flags & SA_NODEFER))
-- 
1.5.6.5


<Prev in Thread] Current Thread [Next in Thread>