[patch 39/45] x86: ptrace, bts: fix an unreachable statement

From: Chris Wright
Date: Tue Mar 31 2009 - 19:34:20 EST


-stable review patch. If anyone has any objections, please let us know.
---------------------

From: xiyou.wangcong@xxxxxxxxx

upstream commit: 5a8ac9d28dae5330c70562c7d7785f5104059c17

Commit c2724775ce57c98b8af9694857b941dc61056516 put a statement
after return, which makes that statement unreachable.

Move that statement before return.

Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>
Cc: Roland McGrath <roland@xxxxxxxxxx>
Cc: Markus Metzger <markus.t.metzger@xxxxxxxxx>
LKML-Reference: <20090313075622.GB8933@hack>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---
arch/x86/kernel/ptrace.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -690,9 +690,8 @@ static int ptrace_bts_config(struct task
if (!cfg.signal)
return -EINVAL;

- return -EOPNOTSUPP;
-
child->thread.bts_ovfl_signal = cfg.signal;
+ return -EOPNOTSUPP;
}

if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/