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/x86/kernel/ptrace.c | |
parent | a98fe7f3425c6b4e90de16f8da63b0429a8fed08 (diff) | |
download | blackbird-op-linux-5a8ac9d28dae5330c70562c7d7785f5104059c17.tar.gz blackbird-op-linux-5a8ac9d28dae5330c70562c7d7785f5104059c17.zip |
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/x86/kernel/ptrace.c')
-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 3d9672e59c16..19378715f415 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) && |