From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 826BB45456; Fri, 14 Jun 2024 07:47:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 748C0402F0; Fri, 14 Jun 2024 07:47:46 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2101.outbound.protection.outlook.com [40.107.244.101]) by mails.dpdk.org (Postfix) with ESMTP id C1731402C6 for ; Fri, 14 Jun 2024 07:47:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fa6L8XufNmivpG9R56QzZUfLAxvZEvfqhvifQWp3jdrng5ijIrTx9Ls1KGEOFaFNDctt6sVNaRkZ21fAoXuciYEZC2b6/8AZVCHyN/81jUzLp+Bk3b7yQLl79emj7Sc9iyUYVnbgK9luSSba8Zo6EN3SJpjbeSUcWxfX6Nq8A5bn6h+cCweViV6S6+8caj+1yhNUgOekCA0MmtD6eTsTqE6KzjQ7cSM/HGFrCcdbdN7h5KVAcPDGukWE4HYkcwWuo2tQA1vziUwr8F0iDruJSXmX5aC8zgBj/Gopkotxaq6jwwoB/2Hs+RT5ku9gXoEplWYF854JWNTQ0hE5BPXSBw== 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=bL9xpu+39b6/dyA/tAxVKRk2ls+nEOkACB9ChE8fLEc=; b=GNC+Du8PcJ65MYD1wl48VzbP0lENbKCiKRhdSTbyWi4hHHMRp5JKyY/vsUaWTC0X+TCdcl2sqbS81HP2j/qd+pupXCOYbYCtFzrZkFYZIozylJuxz2Qxs/sdHsN5E9pfajnHXu3m55FU29m6JEkAyorJhCn/56rXeB5AHJeu75otVHbtvgsVKL0mxri1EqBoAzDmtvU+qFuinT99dCDNhkFU0LBzmfz7NaYURB3b5n8lh6HVDbDi2jUwPum+3gw/0u1FIER3T9af47x/5qfsxMIu4rBu/wm3a88BdAlCffj7bwl3rGC75vXV782oh5koYpA2FBb6AXeC1xtCd02cKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bL9xpu+39b6/dyA/tAxVKRk2ls+nEOkACB9ChE8fLEc=; b=bjj9qxEez0irU3Cm/fUaBSGB5Zcl3H62N0ILuLZYKYqQqXw59gghI8olZIUdK14Je/u5LNg4MtJK+B6qFjoJk3iP6LOujx9km+TVnHwViZfYK2MI53DcN26d4DQCnfT2o3jZbVgr6C/pbNfET7HsemzhKcEDz4vHD7mE/YVfCFg= Received: from PH7PR21MB3071.namprd21.prod.outlook.com (2603:10b6:510:1d0::12) by MN0PR21MB3556.namprd21.prod.outlook.com (2603:10b6:208:3d3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.21; Fri, 14 Jun 2024 05:47:42 +0000 Received: from PH7PR21MB3071.namprd21.prod.outlook.com ([fe80::204c:c88b:65d2:7d3a]) by PH7PR21MB3071.namprd21.prod.outlook.com ([fe80::204c:c88b:65d2:7d3a%3]) with mapi id 15.20.7698.004; Fri, 14 Jun 2024 05:47:42 +0000 From: Long Li To: Mahmoud Maatuq CC: "dev@dpdk.org" Subject: RE: [PATCH v4] net/mana: fix uninitialized scalar variable Thread-Topic: [PATCH v4] net/mana: fix uninitialized scalar variable Thread-Index: AQHavb/eSUfOBU7xLkCgpzYXDHuEzbHGwUnA Date: Fri, 14 Jun 2024 05:47:41 +0000 Message-ID: References: <20240610214320.676239-1-mahmoudmatook.mm@gmail.com> <20240613183040.865732-1-mahmoudmatook.mm@gmail.com> In-Reply-To: <20240613183040.865732-1-mahmoudmatook.mm@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=063841ab-2d44-478a-b907-d08637f9bbc5; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-06-14T05:47:51Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR21MB3071:EE_|MN0PR21MB3556:EE_ x-ms-office365-filtering-correlation-id: 8f9c7dc1-c215-4ced-2e85-08dc8c3581d8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230035|376009|366011|1800799019|38070700013; x-microsoft-antispam-message-info: =?us-ascii?Q?Oeb5Xm8MF+GG2PME6BW6TRF+w5Wn6GeJ4LyNBSmf1+u0wlf27z+s5K4FfYw7?= =?us-ascii?Q?2OxQ0RUYWWv3ZuZ/5c8XfxhM/tzrWTWnmXDj+/XZ59cqN0ZLLbN5lYif6OQQ?= =?us-ascii?Q?eYXRo3hng5kQoZlzFnht1OFGGSOZ6ECN5SNGgPf/no3HyWlKnaYi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AG2qcQkC0CGxDik4BwQBMFCZaem2LWrtSW9u?= =?us-ascii?Q?B15UXu7GiGcVWiZIB/5Cuj0KUT4mFiD1m3fnpEoeeij6ILCraSM4Y2BY3k1P?= =?us-ascii?Q?KndmNDKpBlpD7K67ZYXjAXLTouFKSgCs1Rop6dBetjt8in+yKuD8D3+vIFGP?= =?us-ascii?Q?zD+9bbFBvjfEoquJVOsi31xGEm4GENezUfiFRFyTi2jnsgxdVzIuklIrHuvM?= =?us-ascii?Q?s7SZDx8nQkCjE12gQlhMsYIVsmn9Frjv6Nk9EH2Z1I0NYPwVkWDfayHJ4Zy6?= =?us-ascii?Q?IgX1S9skOMTJmeZSJen66C6auaA46j2jiREGzEQEWKR3hy84VQWQjU44Zvql?= =?us-ascii?Q?53DB9sk=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR21MB3071.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230035)(376009)(366011)(1800799019)(38070700013); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?y8n+0FKWj2AF1zyFuxxoDWxCeRFRDe+YN/d9Xirdmwic83R4Pb1Y7hCc7o63?= =?us-ascii?Q?PYx7IDKgd/11RGeKxuhdt2d6J4N1LgaGHhdef8lDo9vRqTY633EG/d2WyFTO?= =?us-ascii?Q?+ekGFWXFAgfozo+8uIpTsDjoEijXncCxzgPWNPTj1C5C6N9XsDo7AJp7gK3j?= =?us-ascii?Q?wGJjA30PlOszwKng1K3182asLjcLduVl/NuMqZlVmjmxiVK11wZ9zx2Kbncr?= =?us-ascii?Q?9QTJTIzPHjf878ug4PqvDEgFTHEQxK/FubdUqYf8v1mOndVxRQ9FgFBP8PVr?= =?us-ascii?Q?mFZyD4tPZj4Z2hF+Geh67cLliDNnMXmib3AFffoSpM4uKOr8cRh37ffgk0br?= =?us-ascii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wSzbm+IQINZvdjN52gVLcx?= =?us-ascii?Q?gXpBH6zbmFV6EURzw5flZBqRPayV+rrEflvS6kOkCnjS5yjriAS2SKtIlk8m?= =?us-ascii?Q?JA484KtwlTaTdEd/9CaffMHNoKpxjLNWd6EBLza4ydCAptd+Ak0HSFEqAXpn?= =?us-ascii?Q?OnR0u1m53ZtbDHJsumFAXj9KptWxzyWw1Fp6Kj/PmDNw/l1U1oFnUZNaNk8e?= =?us-ascii?Q?7sP29ByP8bSJgk911QN2QbP3PVwejOlBcU7BZCttdWtEM2sy68mDlPk67sD3?= =?us-ascii?Q?pvBmJY5trjEIreiMcm2PY7t+tYBs6dJC2V2gPV2qvVAbS2zCqRe4WKeMRp2u?= =?us-ascii?Q?dhRIiou9/+NTfUOSmE8mc/BkxTB3V9HBaOwPpegT?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR21MB3071.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f9c7dc1-c215-4ced-2e85-08dc8c3581d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 05:47:41.8924 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cQ6LpidbTCvE1b9JOlyzzDZrC9FuHGfjPKIbX+3g7K6tLR3cCWGhum6n4rLCcGRDRrNDeGkA0hoXcfyFtV0AGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR21MB3556 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Subject: [PATCH v4] net/mana: fix uninitialized scalar variable >=20 > [You don't often get email from mahmoudmatook.mm@gmail.com. Learn why > this is important at https://aka.ms/LearnAboutSenderIdentification ] >=20 > in case we didn't enter or finished the loop without getting ifname we re= t > shouldn't have an arbitrary value. >=20 > Coverity issue: 424690 > Fixes: 84497839d9ca ("net/mana: support MTU update") > Cc: longli@microsoft.com >=20 > Signed-off-by: Mahmoud Maatuq Reviewed-by: Long Li > --- > v4: > * used full name in the sign off > v3: > * add Fixes and Cc tags > v2: > * Fixed typo in word "arbitrary" > --- > drivers/net/mana/mana.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c index > 68c625258e..c37c4e3444 100644 > --- a/drivers/net/mana/mana.c > +++ b/drivers/net/mana/mana.c > @@ -715,7 +715,7 @@ mana_dev_stats_reset(struct rte_eth_dev *dev > __rte_unused) static int mana_get_ifname(const struct mana_priv *priv, = char > (*ifname)[IF_NAMESIZE]) { > - int ret; > + int ret =3D -ENODEV; > DIR *dir; > struct dirent *dent; >=20 > -- > 2.43.0