* [PATCH] sparc{,64}: propagate ptrace_traceme() return value
@ 2006-11-29 8:42 Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2006-11-29 8:42 UTC (permalink / raw)
To: sparclinux
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] sparc{,64}: propagate ptrace_traceme() return value
@ 2006-12-02 4:18 David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-12-02 4:18 UTC (permalink / raw)
To: sparclinux
From: Alexey Dobriyan <adobriyan@openvz.org>
Date: Wed, 29 Nov 2006 11:42:09 +0300
> ptrace_traceme() consolidation made
>
> ret = ptrace_traceme();
>
> dead write.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Applied, thanks Alexey.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-02 4:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 8:42 [PATCH] sparc{,64}: propagate ptrace_traceme() return value Alexey Dobriyan
-- strict thread matches above, loose matches on Subject: below --
2006-12-02 4:18 David Miller
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.