From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.49293.1598863933386011433 for ; Mon, 31 Aug 2020 01:52:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=E/MTh2Uh; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: +utqVGm3Pe0TK2llBdso6EPJx3G+MJwM9xvysIH6nYtErDRirRmMqq5Zjb9rftjzPyvDQHk2BI EO/fBJfx+zBw== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="218480879" X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="218480879" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 01:52:12 -0700 IronPort-SDR: 7Ut13M0VjqEYNLbglka5F8i2EaeyBrSTPS8f74wZDtlMoxSTXUO/XjxRNNnCfQJ0wezq4ps8rW 6h/Df2BV73UA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="445633766" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga004.jf.intel.com with ESMTP; 31 Aug 2020 01:52:12 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 31 Aug 2020 01:52:08 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 31 Aug 2020 01:52:08 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 31 Aug 2020 01:51:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lmfGYNGRtA41sMOiMzSwfeM9bHQ4cprflvIMDu5cIfU90uezzUoRJ5kSCWdsohPFdRoNQfa/OWL+Dsi2Xdx3ouzXbXxQqZ5dzStclSYnFuGbV3c7Ase4rafuVSPrb6m4y/Nr8H7Zi9vV8/UYLGZvfunjw5clXJqPyie2tcbIdsAUt1Pdp0/Y0cEO5G5VqLQ3/BxerwWjBkRgZvWO34NVXebIH4QejYs2BA4d0nL0tb8895M6h/BSoGVxixUtfX8cjD0ABDkhpGAFiEtBduxXnSmzk0ew0MIoI6c2Dd5o91eQ5HmFPe3y4PKY/I9VVkeqUlQyzxyHaJNcREJ3zZ6dhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MZ7cJOprU4o6Ss9aWQuUIbIaUWtAwuHKxOgZNDoUqt4=; b=jN6rioSn09+aTL/kf+z/qKoN8x4sxhTb8jYKHblNMYXsEHGboMmmVTaISKcBocWyrogX5IOiOJteaUq8tLfTQ9Q6cy/S2HcgCKznGFAD22s60UwdYo8WIFNCC9/F540QgKxuC6F3DGlEEVUeLC3jJhKEtWm5O45wHQFaktEfQ3Fpdv2mhfZUgkaj3UkzfKxqkmt9IMgXDXNizyl6CbZLYnayPrj8p1oiInd4XGszlFZ1gcnaKBS+wLkmhkkAZIV4ju7g35NCuUnM3F5WxP5S7E2McoicmA0/2/kOA0valp3BiFSjgqhoCk9sH1ElU8lVe0oXaYtFrC39dBz0rbI5Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MZ7cJOprU4o6Ss9aWQuUIbIaUWtAwuHKxOgZNDoUqt4=; b=E/MTh2Uh3ySUDJ09znUyb/yh3j/vF+/CrsfpY5ZzZX/wIrgugFOFWC2LMchIVCUUvz6swb4yc/slkJRzQJ5qr+IUd65VPqSQq8YW7k2+4BHBGRiqxqYGEpQ5ZnvYUzab3GGhQzcJuJ8G3t7D3qe299v4DOncFi2yIXTWwQgFB7Y= Received: from CY4PR11MB1687.namprd11.prod.outlook.com (2603:10b6:903:2e::11) by CY4PR11MB0056.namprd11.prod.outlook.com (2603:10b6:910:7c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Mon, 31 Aug 2020 08:51:00 +0000 Received: from CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::b590:372a:9224:5e7b]) by CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::b590:372a:9224:5e7b%8]) with mapi id 15.20.3326.025; Mon, 31 Aug 2020 08:51:00 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "Liu, Zhiguang" , Liming Gao CC: "Yao, Jiewen" , "Wang, Jian J" , "Zhang, Qi1" , "Kumar, Rahul1" Subject: Re: [edk2-devel] [PATCH] SecurityPkg: Initailize variable Status before it is consumed. Thread-Topic: [edk2-devel] [PATCH] SecurityPkg: Initailize variable Status before it is consumed. Thread-Index: AQHWf28GDm5vBxng80aaks1ukPp/calR4y3w Date: Mon, 31 Aug 2020 08:51:00 +0000 Message-ID: References: <16304C4E5952DEC7.30845@groups.io> In-Reply-To: <16304C4E5952DEC7.30845@groups.io> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 70b56c63-ca2f-48d8-2eea-08d84d8afc60 x-ms-traffictypediagnostic: CY4PR11MB0056: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2887; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: c2jSowrWW28+MHxaKcYWW48SUk9KRDBnD610pUISKbyY6mo5s2wgMXHrgBC01dZ3XPQAkDnsPPLUinneDlCfikj5UCXWk5fZFvXsXVjdUpIa1V1LbTJ8HOagInXdvlP/EzYc1cRNtDBrd3kId2sTLMTDB6tmjsfmvnG53vBTxNNEyRM+hPDHvaKY4O+YeNl56bLA/Xs3KbjfnxiQr/SdOoDkKwSCb8UofEau4PVbO+w5mZCfmRhfp/86otMgY69nObAv7t0/twEufZtN40cyffzpti7Qenbg7NyMtV71BZiDpAzXVpPBRHV0L7lUsdadTLKOnqWrW9qEAIzEdQLsiPiZcJh9SCsDUBeWPXZih7V/xf/HmtYuC/8J5xxM3/apGUiScIAruQ4Sbo+jFama4w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1687.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(136003)(376002)(366004)(346002)(39860400002)(15650500001)(5660300002)(53546011)(66946007)(110136005)(33656002)(186003)(52536014)(86362001)(4326008)(9686003)(66476007)(107886003)(8676002)(55016002)(64756008)(26005)(8936002)(66446008)(7696005)(54906003)(66556008)(76116006)(71200400001)(6506007)(2906002)(478600001)(966005)(19627235002)(83380400001)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: q+qKunO/loO8C9z7fECeZeUoXFWcB3VowpGdQvqgnYRq9tAnGQoUBoQ/fosXxIKnS+cEv+PKt7Ym6zhbYwDQK2oI+JSg9ZgbLek3jUa8NhPKUmK1Ze3nYkE8UN6YCZLs+G/oc4Dx1Qt2kvqMVTcRkNrd5daBcoDmN7z3p6lO7wJW2nDdeXOjSv/tjWcTv/UF1pQgnTLYwkjCc78+lEzSVfTq0kk1tbQWY9cwr3TGSlCRiKds1JOCzCcznQlFufe4dSHOuWL1FaibK4kGi/kvl12DleUDyes2dsEpXK7Rglib0i4vBcBEv2MbDHCtaWq7c1s/VHJFI1sLCStiuzqjDxrcXucJAWrsQ5+7hf1gsQgGXyhNPIbA+jsVG35umjr43XO7JTb0GisZ1Y+bXBzlJLpvskl+/VAcT7dS7ijHJifOYUNMXXPWUYvrHTcoNaCtH9tuqzjrcURN5G/uEXrj0aiIMUkDdR9mB1/JG/qdK/bCI5BsiHXxpfNOfCPjINRt9boe5afp0vLhAeE905kalmqjmbUoR22OeKt/8bpU0XZ9a7k4WlEzU0xDULJbZUWoyYQkuMEmh4Dob3uMS09p79DsTrAHkrZHYR+sfGkvscNbfNGTkDmdMmitdyaPh8WY4qMCDisPY8AIJsITwK5vdw== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1687.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70b56c63-ca2f-48d8-2eea-08d84d8afc60 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2020 08:51:00.5283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fQXO3d6NeJTHbWhUoIPb4FlovdrE5G81qBTtEqAWmA0Y36U02TAkG3CqNo2x34PPuBNvr7DhZoqLSSHMDcBZQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB0056 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Liming, This is a small bug fix, and I want to catch the stable tag. Thanks Zhiguang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Zhiguang > Liu > Sent: Monday, August 31, 2020 4:16 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Wang, Jian J ; > Zhang, Qi1 ; Kumar, Rahul1 > Subject: [edk2-devel] [PATCH] SecurityPkg: Initailize variable Status bef= ore it is > consumed. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2945 >=20 > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Qi Zhang > Cc: Rahul Kumar > Signed-off-by: Zhiguang Liu > --- > SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > index 0e770f4485..5e883f0cc5 100644 > --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > @@ -449,6 +449,7 @@ HashLogExtendEvent ( > EFI_STATUS Status; >=20 > TPML_DIGEST_VALUES DigestList; >=20 >=20 >=20 > + Status =3D EFI_SUCCESS; >=20 > if (GetFirstGuidHob (&gTpmErrorHobGuid) !=3D NULL) { >=20 > return EFI_DEVICE_ERROR; >=20 > } >=20 > -- > 2.25.1.windows.1 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. >=20 > View/Reply Online (#64819): https://edk2.groups.io/g/devel/message/64819 > Mute This Topic: https://groups.io/mt/76530112/1779286 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [zhiguang.liu@intel.co= m] > -=3D-=3D-=3D-=3D-=3D-=3D