From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50CD744C97; Sun, 1 Sep 2024 16:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725207606; cv=none; b=iuYoRbCqvFMT17PTqbj2/kyfpepN31QH9vPtqGaQlLYuMABgu6LHJjLLNXksgrZsPSofhixPD5sYESp4ga0LOHCP6BavFqEAcIIkRAwpHk+e94kACRovFQtZMAkb1WqSsQMD//Fi2zSin2cPwPKMlBd3XNTJaLAEhzFzeFsWxqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725207606; c=relaxed/simple; bh=11xqQxjfJ+eK1Sq3AnzmcxPHyArH4eXAVtceHYw6Z4s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QJCzeshckqVXWLgvnAR+ilrR0M2/wIiDyRXVLbI59l21wsfNagZ83X0IhY2iCK/exX7brTeciNHCEv/yywDTTnWeUO0UIOAqShpgimuLjF05bp3pnqtHWMvQQtcbTC9XMNqZDgcZviTd1JWhnimYLDhhj7TwW44xQZehNHAZSUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WaNA3QsX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WaNA3QsX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B215DC4CEC3; Sun, 1 Sep 2024 16:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725207606; bh=11xqQxjfJ+eK1Sq3AnzmcxPHyArH4eXAVtceHYw6Z4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WaNA3QsXyBr2TtA+pQOVK2u9IrOivzfpcXYcjI9uld1BsCoAmDkqXJO1d/wa6fC/x rMfjYjMt85jXU6Dd+PdmZ2WajKZAgOjps9dMI9I6feJvxKRD9ZsW2VT5T5g3QR6SrA SBjJsze0W3mXYP6zgeDGQdwwOOrejtDLdP9GKz4o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andrew Jones , Haibo Xu , Anshuman Khandual , Sunil V L , Catalin Marinas , Lorenzo Pieralisi , Hanjun Guo Subject: [PATCH 4.19 04/98] arm64: ACPI: NUMA: initialize all values of acpi_early_node_map to NUMA_NO_NODE Date: Sun, 1 Sep 2024 18:15:34 +0200 Message-ID: <20240901160803.844802213@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240901160803.673617007@linuxfoundation.org> References: <20240901160803.673617007@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haibo Xu commit a21dcf0ea8566ebbe011c79d6ed08cdfea771de3 upstream. Currently, only acpi_early_node_map[0] was initialized to NUMA_NO_NODE. To ensure all the values were properly initialized, switch to initialize all of them to NUMA_NO_NODE. Fixes: e18962491696 ("arm64: numa: rework ACPI NUMA initialization") Cc: # 4.19.x Reported-by: Andrew Jones Suggested-by: Andrew Jones Signed-off-by: Haibo Xu Reviewed-by: Anshuman Khandual Reviewed-by: Sunil V L Reviewed-by: Andrew Jones Acked-by: Catalin Marinas Acked-by: Lorenzo Pieralisi Reviewed-by: Hanjun Guo Link: https://lore.kernel.org/r/853d7f74aa243f6f5999e203246f0d1ae92d2b61.1722828421.git.haibo1.xu@intel.com Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/acpi_numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/kernel/acpi_numa.c +++ b/arch/arm64/kernel/acpi_numa.c @@ -28,7 +28,7 @@ #include -static int acpi_early_node_map[NR_CPUS] __initdata = { NUMA_NO_NODE }; +static int acpi_early_node_map[NR_CPUS] __initdata = { [0 ... NR_CPUS - 1] = NUMA_NO_NODE }; int __init acpi_numa_get_nid(unsigned int cpu) {