From: Alexey Dobriyan <adobriyan@openvz.org>
To: sparclinux@vger.kernel.org
Subject: [PATCH] sparc{,64}: propagate ptrace_traceme() return value
Date: Wed, 29 Nov 2006 08:42:09 +0000 [thread overview]
Message-ID: <20061129084209.GA10848@localhost.sw.ru> (raw)
ptrace_traceme() consolidation made
ret = ptrace_traceme();
dead write.
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
---
arch/sparc/kernel/ptrace.c | 5 ++++-
arch/sparc64/kernel/ptrace.c | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
--- a/arch/sparc/kernel/ptrace.c
+++ b/arch/sparc/kernel/ptrace.c
@@ -289,7 +289,10 @@ #endif
if (request = PTRACE_TRACEME) {
ret = ptrace_traceme();
- pt_succ_return(regs, 0);
+ if (ret < 0)
+ pt_error_return(regs, -ret);
+ else
+ pt_succ_return(regs, 0);
goto out;
}
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -202,7 +202,10 @@ #ifdef DEBUG_PTRACE
#endif
if (request = PTRACE_TRACEME) {
ret = ptrace_traceme();
- pt_succ_return(regs, 0);
+ if (ret < 0)
+ pt_error_return(regs, -ret);
+ else
+ pt_succ_return(regs, 0);
goto out;
}
next reply other threads:[~2006-11-29 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 8:42 Alexey Dobriyan [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-02 4:18 [PATCH] sparc{,64}: propagate ptrace_traceme() return value David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061129084209.GA10848@localhost.sw.ru \
--to=adobriyan@openvz.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.