[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090313075622.GB8933@hack>
Date: Fri, 13 Mar 2009 15:56:58 +0800
From: Américo Wang <xiyou.wangcong@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Roland McGrath <roland@...hat.com>,
Markus Metzger <markus.t.metzger@...el.com>,
Ingo Molnar <mingo@...e.hu>
Subject: [Patch] ptrace: fix an unreachable statement
commit c2724775ce57c98b8af9694857b941dc61056516 put a statement after
return, which makes that statement unreachable.
Move that statement before return.
Cc: Markus Metzger <markus.t.metzger@...el.com>
Cc: Ingo Molnar <mingo@...e.hu>
Cc: Roland McGrath <roland@...hat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@...il.com>
---
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 06ca07f..f7d38d6 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) &&
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists