diff options
author | Américo Wang <xiyou.wangcong@gmail.com> | 2009-03-13 15:56:58 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-13 10:27:57 +0100 |
commit | 5a8ac9d28dae5330c70562c7d7785f5104059c17 (patch) | |
tree | 08c21d304707df6426d88fdb1cdc0076be8bc481 /arch | |
parent | a98fe7f3425c6b4e90de16f8da63b0429a8fed08 (diff) |
x86: ptrace, bts: fix an unreachable statement
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 3d9672e59c1..19378715f41 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c @@ -685,9 +685,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) && |