From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: shenglei.zhang@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Wed, 11 Sep 2019 20:28:03 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2019 20:28:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="189861753" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 11 Sep 2019 20:28:00 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Michael Kubacki , Chasel Chiu , Nate DeSimone , Liming Gao Subject: [PATCH v2 0/2] Add error handling and initialize variables Date: Thu, 12 Sep 2019 11:27:17 +0800 Message-Id: <20190912032720.38132-1-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 1.Add error handling to enhance status checking. 2.Initialize the variables before used and add check before FreePool(). v2: Update copyright in 01/02. Cc: Michael Kubacki Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Shenglei Zhang (2): MinPlatformPkg/AcpiTables: Initialize variables before used MinPlatformPkg/AcpiTables: Add error handling to SortCpuLocalApicInTable .../Acpi/AcpiTables/AcpiPlatform.c | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) -- 2.18.0.windows.1