Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765027AbZCaXeT (ORCPT ); Tue, 31 Mar 2009 19:34:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763987AbZCaXVe (ORCPT ); Tue, 31 Mar 2009 19:21:34 -0400 Received: from sous-sol.org ([216.99.217.87]:33269 "EHLO x200.localdomain" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1764028AbZCaXVc (ORCPT ); Tue, 31 Mar 2009 19:21:32 -0400 Message-Id: <20090331231744.552474410@sous-sol.org> User-Agent: quilt/0.47-1 Date: Tue, 31 Mar 2009 16:11:24 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, xiyou.wangcong@gmail.com, Roland McGrath , Markus Metzger , Ingo Molnar Subject: [patch 39/45] x86: ptrace, bts: fix an unreachable statement References: <20090331231045.719396245@sous-sol.org> Content-Disposition: inline; filename=x86-ptrace-bts-fix-an-unreachable-statement.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 42 -stable review patch. If anyone has any objections, please let us know. --------------------- From: xiyou.wangcong@gmail.com upstream commit: 5a8ac9d28dae5330c70562c7d7785f5104059c17 Commit c2724775ce57c98b8af9694857b941dc61056516 put a statement after return, which makes that statement unreachable. Move that statement before return. Signed-off-by: WANG Cong Cc: Roland McGrath Cc: Markus Metzger LKML-Reference: <20090313075622.GB8933@hack> Cc: Signed-off-by: Ingo Molnar Signed-off-by: Chris Wright --- arch/x86/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c @@ -690,9 +690,8 @@ static int ptrace_bts_config(struct task 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/