2009-03-31 23:34:19

by Chris Wright

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

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

From: [email protected]

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 <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: Markus Metzger <[email protected]>
LKML-Reference: <20090313075622.GB8933@hack>
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Chris Wright <[email protected]>
---
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) &&