From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5237894147B for ; Tue, 31 Oct 2023 07:45:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qHQ6AfwoYvp33tHYIbSIbjDuPTbmDu6AwMplCzJFF7c=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1698738308; v=1; b=nmXdBLKct6RlaydyG1s58YPuw6qqyAlIEEHFHtGSg8ymfSdenWuR+1Yi79evCjKx/aWG1RhT gSrR1lBZZcx+JQJ3d7huHXsv5d9I496CFrTOA5bJMaE86+G0+WE0jk9mkgCtDZkoXuG4aUTIZz2 SnLfzHRVIAIAoYPbhxefZQcw= X-Received: by 127.0.0.2 with SMTP id m8SNYY7687511xSKV8oFSldL; Tue, 31 Oct 2023 00:45:08 -0700 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.69]) by mx.groups.io with SMTP id smtpd.web10.181129.1698738307396287359 for ; Tue, 31 Oct 2023 00:45:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NHwoJlDrXI3aTXP1w8ZGahUN5Aqgr8iq2PMgQ4y8Mi0e7d3v8Nt/jnbP3VfAuhLRY9Kc+9tfYgIqkeZc9co17H6JTFKyIgeLaVrFINApWubnffUZsd+qYL9WU6T2dFknMoeXBQ1IYle4d455xbLyOIQ5UhueDTWTtr/Go+no54kjx2H3rHpKQtQ7pRM+iC4EdOyhWd1NWUNGSOhaaznJdPsEl9siuuHR6TtykUNhRPD8VwW+KGP92HdAJ+OVNMAGDhEzoj3BfDsygN1TuaWq7FcDC5KSiyLs62gqUY6nNpSwO61lQl9F3rZrGqyx9Wz0WRprvZGTYN30ENqYUEARvw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8KHn5wUaMweSfmPf88TMyNMgQt8ao27lbEPWbXisL3I=; b=kMc9I1GGnJMmzvcIYZHhev+FxGAPFsB6OX3o79PHNZkTqjMiDcZJCRNmkg5fAfoXtiH5f7HPFMQscbsp1W2DSeu+XXgI9Ql9xM3rdVnsEV+HtMz318J5gqOcSIIYRFS2wyDt/9HwUW17SCCQSP8FbpiipgDzHxO0KWnMzRRx1asSyg8xZNyXnFAq/4mgnhyNbHGI9mboTtEUwUDPTlHKknr4t4UJY40+gx3B5g4muN7S83xSfGLVxgMq4S/WksBkP+zCSqFwlO1DiTPbLZ1nBoZj8yqNZx6VUirv5RA2aGUUN26ct5a8yaxgl1eGaZst+alwX+Ys/a1lygnGIuDeYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) X-Received: from DM6PR02CA0134.namprd02.prod.outlook.com (2603:10b6:5:1b4::36) by LV8PR12MB9206.namprd12.prod.outlook.com (2603:10b6:408:186::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Tue, 31 Oct 2023 07:45:04 +0000 X-Received: from DS3PEPF000099D3.namprd04.prod.outlook.com (2603:10b6:5:1b4:cafe::74) by DM6PR02CA0134.outlook.office365.com (2603:10b6:5:1b4::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.28 via Frontend Transport; Tue, 31 Oct 2023 07:45:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by DS3PEPF000099D3.mail.protection.outlook.com (10.167.17.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.22 via Frontend Transport; Tue, 31 Oct 2023 07:45:03 +0000 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 31 Oct 2023 00:44:51 -0700 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 31 Oct 2023 00:44:51 -0700 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Tue, 31 Oct 2023 00:44:50 -0700 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH 1/3] RedfishClientPkg/RedfishETagDxe: fix uninitialized variable issue Date: Tue, 31 Oct 2023 15:44:49 +0800 Message-ID: <20231031074449.23491-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D3:EE_|LV8PR12MB9206:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dedf525-18b3-460d-4948-08dbd9e54b65 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: oqjFzdER8gh2uYyAxYc8OKbysGAKudhcg2jsFtkh0LDHGsdNtF/ufrmNjr4qj4GtQ6W4SLdU5kuFQ61p3qFXkDANgeD46RTh7mqbsfeUf6of/K1cwM9FDBOd4H4c223FS1xQIOp5S7dcAAgZcfLHVPydRgf5sFiwojQCq/lU95i38netpE/gd5JAzuT5NFLH1Ws1sxIn9qxtI2P7/mvtFrsPgh1X5KR7lYttRK/7cmjLmQuomSEhdg/rpz2yb3n3JkdHUmt7EenGyWrRiyB80vUewQG1NmqYGvp8vxNpwn/clMSgND/IYTfFzFuUIG5jGcw4NcydG/lLJGiYGvNU3IRm1l8UXXfWjtyofLxdqd79MqX+U3EGNwwAvcrm1AWfpG3DnA3ezUTMkO2x+ShiTGAhediS30ZiboJDHpYO3jl4Va2At2i7qN2NPKoqU6VzSkF7qz4cc6QvBq6Om3rZKmOPkKV10YsYDhHOCnVBhUbTLbNvH+YMqemvI/vLX+s/O7bNvsHQcMXeOpkY9YcM2ByIwkcz8JCOQ8SbuajB/Q3Ubf56kgaSK+6I/jJsZZ/4luW8OdygSQbhJ8xgKTrsvR9S8G6CfdCpBSasMMndlWGEEgpXbMN7h2MHncKCflBTLQK3ldo14vy+AQ2GKHCqLvaEqzWfpeK/D2K3qGav0v7BzG1iU8BvxzkxJwaf+knb5qfwbmpzSXiApb1QGv2qXlYI5qOrJuXarZ8m/I/1HAc= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2023 07:45:03.7161 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6dedf525-18b3-460d-4948-08dbd9e54b65 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D3.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9206 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: YOHwYLyhEPBeuNEwnVqoLnBMx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=nmXdBLKc; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Status variable is not initialized. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c b/RedfishClie= ntPkg/RedfishETagDxe/RedfishETagDxe.c index a892ced9..f731d39d 100644 --- a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c +++ b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c @@ -1,7 +1,7 @@ /** @file =20 (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
- Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . + Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -728,6 +728,7 @@ RedfishETagDriverEntryPoint ( InitializeListHead (&mRedfishETagPrivate->ETagList.Listheader); mRedfishETagPrivate->VariableName =3D AllocateCopyPool (StrSize (ETAG_VA= RIABLE_NAME), ETAG_VARIABLE_NAME); if (mRedfishETagPrivate->VariableName =3D=3D NULL) { + Status =3D EFI_OUT_OF_RESOURCES; goto ON_ERROR; } =20 --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110380): https://edk2.groups.io/g/devel/message/110380 Mute This Topic: https://groups.io/mt/102293046/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-