]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: ptrace, bts: fix an unreachable statement
authorAmérico Wang <xiyou.wangcong@gmail.com>
Fri, 13 Mar 2009 07:56:58 +0000 (15:56 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Mar 2009 09:27:57 +0000 (10:27 +0100)
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>
arch/x86/kernel/ptrace.c

index 3d9672e59c16aeb0b16d0be4d0aae5f1b362f61c..19378715f4157b5202d823f9d751dd1f07c08b38 100644 (file)
@@ -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) &&