aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorxiyou.wangcong@gmail.com <xiyou.wangcong@gmail.com>2009-03-30 18:50:30 +0000
committerChris Wright <chrisw@sous-sol.org>2009-04-02 13:55:19 -0700
commit178e0475b55e31b8d4cc7f247295f7b887680dce (patch)
tree9c9c497eb851be9fea2fda65f6667fec8b0b96fc /arch
parent393c20529ebe898fb975744ed0aad5bdd953f232 (diff)
x86: ptrace, bts: fix an unreachable statement
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@gmail.com> Cc: Roland McGrath <roland@redhat.com> Cc: Markus Metzger <markus.t.metzger@intel.com> LKML-Reference: <20090313075622.GB8933@hack> Cc: <stable@kernel.org> # .29 only Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/ptrace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 06ca07f6ad8..f7d38d6781b 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -690,9 +690,8 @@ static int ptrace_bts_config(struct task_struct *child,
if (!cfg.signal)
return -EINVAL;
- return -EOPNOTSUPP;
-
child->thread.bts_ovfl_signal = cfg.signal;
+ return -EOPNOTSUPP;
}
if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&