Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755898AbZCRIxF (ORCPT ); Wed, 18 Mar 2009 04:53:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755322AbZCRIwX (ORCPT ); Wed, 18 Mar 2009 04:52:23 -0400 Received: from hera.kernel.org ([140.211.167.34]:44487 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754836AbZCRIwU (ORCPT ); Wed, 18 Mar 2009 04:52:20 -0400 Date: Wed, 18 Mar 2009 08:51:43 GMT From: Rusty Russell To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com, travis@sgi.com, rusty@rustcorp.com.au, cpw@sgi.com, stable@kernel.org, tglx@linutronix.de, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, rusty@rustcorp.com.au, travis@sgi.com, stable@kernel.org, cpw@sgi.com, tglx@linutronix.de, mingo@elte.hu In-Reply-To: <200903180822.31196.rusty@rustcorp.com.au> References: <200903180822.31196.rusty@rustcorp.com.au> Subject: [tip:x86/uv] x86, uv: fix cpumask iterator in uv_bau_init() Message-ID: Git-Commit-ID: 2c74d66624ddbda8101d54d1e184cf9229b378bc X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Wed, 18 Mar 2009 08:51:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1816 Lines: 55 Commit-ID: 2c74d66624ddbda8101d54d1e184cf9229b378bc Gitweb: http://git.kernel.org/tip/2c74d66624ddbda8101d54d1e184cf9229b378bc Author: Rusty Russell AuthorDate: Wed, 18 Mar 2009 08:22:30 +1030 Commit: Ingo Molnar CommitDate: Wed, 18 Mar 2009 09:47:54 +0100 x86, uv: fix cpumask iterator in uv_bau_init() Impact: fix boot crash on UV systems Commit 76ba0ecda0de9accea9a91cb6dbde46782110e1c "cpumask: use cpumask_var_t in uv_flush_tlb_others" used cur_cpu as an iterator; it was supposed to be zero for the code below it. Reported-by: Cliff Wickman Original-From: Cliff Wickman Signed-off-by: Rusty Russell Acked-by: Mike Travis Cc: steiner@sgi.com Cc: LKML-Reference: <200903180822.31196.rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar --- arch/x86/kernel/tlb_uv.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/tlb_uv.c b/arch/x86/kernel/tlb_uv.c index d038b9c..79c0732 100644 --- a/arch/x86/kernel/tlb_uv.c +++ b/arch/x86/kernel/tlb_uv.c @@ -750,7 +750,7 @@ static int __init uv_bau_init(void) int node; int nblades; int last_blade; - int cur_cpu = 0; + int cur_cpu; if (!is_uv_system()) return 0; @@ -760,6 +760,7 @@ static int __init uv_bau_init(void) uv_mmask = (1UL << uv_hub_info->n_val) - 1; nblades = 0; last_blade = -1; + cur_cpu = 0; for_each_online_node(node) { blade = uv_node_to_blade_id(node); if (blade == last_blade) -- 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/