linux-mips
[Top] [All Lists]

[PATCH 5/8] signal: test return value of install_sigtramp()

To: ralf@linux-mips.org
Subject: [PATCH 5/8] signal: test return value of install_sigtramp()
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Wed, 24 Jan 2007 15:12:08 +0100
Cc: linux-mips@linux-mips.org, Franck Bui-Huu <fbuihuu@gmail.com>
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=hal5hxMeoqaKSPE/ESOTbLDiYDMgoEKgFeMams1SRxW4rTNpMY56HJX6WvRH3BIfEfj8K29y80eTJWKcECjOA6F6oxkjhbUdVQ3tmMBnIic7Un4Z3grGsZ8jiC+xVymiLI3xKXXhJOA6WI9vIDuK60L2qK+ZjlfwuGC4fInhPRM=
In-reply-to: <11696479312279-git-send-email-fbuihuu@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <11696479312279-git-send-email-fbuihuu@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Franck Bui-Huu <fbuihuu@gmail.com>

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
 arch/mips/kernel/signal.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index 41033be..5245135 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -184,7 +184,7 @@ int install_sigtramp(unsigned int __user *tramp, unsigned 
int syscall)
         */
 
        err = __put_user(0x24020000 + syscall, tramp + 0);
-       err |= __put_user(0x0000000c          , tramp + 1);
+       err |= __put_user(0x0000000c         , tramp + 1);
        if (ICACHE_REFILLS_WORKAROUND_WAR) {
                err |= __put_user(0, tramp + 2);
                err |= __put_user(0, tramp + 3);
@@ -400,7 +400,7 @@ int setup_frame(struct k_sigaction * ka, struct pt_regs 
*regs,
        if (!access_ok(VERIFY_WRITE, frame, sizeof (*frame)))
                goto give_sigsegv;
 
-       install_sigtramp(frame->sf_code, __NR_sigreturn);
+       err |= install_sigtramp(frame->sf_code, __NR_sigreturn);
 
        err |= setup_sigcontext(regs, &frame->sf_sc);
        err |= __copy_to_user(&frame->sf_mask, set, sizeof(*set));
@@ -447,7 +447,7 @@ int setup_rt_frame(struct k_sigaction * ka, struct pt_regs 
*regs,
        if (!access_ok(VERIFY_WRITE, frame, sizeof (*frame)))
                goto give_sigsegv;
 
-       install_sigtramp(frame->rs_code, __NR_rt_sigreturn);
+       err |= install_sigtramp(frame->rs_code, __NR_rt_sigreturn);
 
        /* Create siginfo.  */
        err |= copy_siginfo_to_user(&frame->rs_info, info);
-- 
1.4.4.3.ge6d4


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