mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
a98fe7f342
commit
5a8ac9d28d
@ -685,9 +685,8 @@ static int ptrace_bts_config(struct task_struct *child,
|
|||||||
if (!cfg.signal)
|
if (!cfg.signal)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
|
|
||||||
child->thread.bts_ovfl_signal = cfg.signal;
|
child->thread.bts_ovfl_signal = cfg.signal;
|
||||||
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&
|
if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user