From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web08.2956.1640069284448207654 for ; Mon, 20 Dec 2021 22:48:05 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=dhXce+pN; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: jackx.lin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640069284; x=1671605284; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HijZdZDyGOqQEujtQWS5b2r27dgp62DtRJtIre/2o7c=; b=dhXce+pN1s2W2eEBMV7si5ucSiC3Qnlct3wrs6BhqZx8VOmbFmK1Bjs2 D5cDXuS3Ha7SIYeAuUGO91+Dwodor8qkhNZaA1pp0uABR8gZFK12f0vzy 3KETJ5QQLZ9RgHYDLkzocuPDiito7IVhLB2SyRtx43E7QpPPcS32bgXsM 0aT1G1WPYUMkjVO8TvN9WeNI6jQ9fv4r1p669U0bWa0t9pbOW04bl59KW PGuOQ5k7QhBurxrBIH8xz/AoApEegOx0q2BVBQcD3s71u3TXJqCcCPtQJ BvfSUg+kjND4ZkVr5jgOPPSVnjRFZ7DN1OOILY/a5ZdQmna6S8TDzS7Qx A==; X-IronPort-AV: E=McAfee;i="6200,9189,10204"; a="220350151" X-IronPort-AV: E=Sophos;i="5.88,222,1635231600"; d="scan'208";a="220350151" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 22:48:03 -0800 X-IronPort-AV: E=Sophos;i="5.88,222,1635231600"; d="scan'208";a="484323432" Received: from lins2x-desk1.gar.corp.intel.com ([10.225.33.149]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 22:48:00 -0800 From: "JackX Lin" To: devel@edk2.groups.io Cc: JackX Lin , JackX Lin , Chasel Chiu , Dong Eric , Jiewen Yao , Ray Ni , Rangasai V Chaganty , Donald Kuo , Chandana C Kumar Subject: [edk2-platforms: PATCH] System will occur a CPU exception error when sorting CPU APIC map, because of a pointer point to an wrong space. Date: Tue, 21 Dec 2021 14:47:40 +0800 Message-Id: <20211221064740.1613-1-jackx.lin@intel.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: JackX Lin Cc: Chasel Chiu Cc: Dong Eric Cc: Jiewen Yao Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Donald Kuo Cc: Chandana C Kumar Cc: JackX Lin --- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c index 785cf4c2f9..05fc7799fb 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c @@ -169,7 +169,7 @@ SortCpuLocalApicInTable ( UINT32 Index; UINT32 CurrProcessor; UINT32 BspApicId; - EFI_CPU_ID_ORDER_MAP *TempVal; + EFI_CPU_ID_ORDER_MAP TempVal; EFI_CPU_ID_ORDER_MAP *CpuIdMapPtr; UINT32 CoreThreadMask; EFI_CPU_ID_ORDER_MAP *TempCpuApicIdOrderTable; @@ -183,7 +183,6 @@ SortCpuLocalApicInTable ( } TempCpuApicIdOrderTable = AllocateZeroPool (mNumberOfCpus * sizeof (EFI_CPU_ID_ORDER_MAP)); - TempVal = AllocateZeroPool (sizeof (EFI_CPU_ID_ORDER_MAP)); CoreThreadMask = (UINT32) ((1 << mNumOfBitShift) - 1); for (CurrProcessor = 0, Index = 0; CurrProcessor < mNumberOfCpus; CurrProcessor++, Index++) { -- 2.32.0.windows.2