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 BAAE945DB6 for ; Wed, 27 Nov 2024 11:49:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3EBE402A3; Wed, 27 Nov 2024 11:49:16 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id 990CF400D6; Wed, 27 Nov 2024 11:49:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732704555; x=1764240555; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=YDAlD98NaWZNG2iWsAok6jCAhKkyIAKQIRkYZ6gNkh4=; b=NivJuT23f/lxS97bxuUGN5iq+XZLasS14cqgfieXrGfLPRAiFnAcyT11 6TWfZPleHUJ2ZdMiTInJiWoOwjECBfBDP5iNMrjLFO9j5BYeYv+L/4MCh RGzyVVAsPVanAr91jWzq5gfGXFAbGp0R4gEqwzaDbuWeznZZaQIE+4+lp OHAd8IYHGDx1KYYuaX2gy5Kjb7Qy4eUSFQxJQBgJIgghwhDYTUDp8eIQL 1FsOGV+1jyQpZ7RX2+fYND3fsn5aXSj2bPV6xoI7o+Y/yWY6wc0vRGTo6 3nfbXI6vUSByBIqLLTXcmkwvmohdV/ME206s+/OxS6ld5piDOCxk+A40I g==; X-CSE-ConnectionGUID: RRlUDUOwR72/WdV/5V9Uog== X-CSE-MsgGUID: +eaQiK5QRqe/AHFg3ucEMw== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="43966213" X-IronPort-AV: E=Sophos;i="6.12,189,1728975600"; d="scan'208";a="43966213" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2024 02:49:13 -0800 X-CSE-ConnectionGUID: 8rda9VwfTQOnUuMX3Sa2Jg== X-CSE-MsgGUID: URktqW3NRUWU0H0iyqdOFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,189,1728975600"; d="scan'208";a="122739469" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Nov 2024 02:49:12 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 27 Nov 2024 02:49:11 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2507.39 via Frontend Transport; Wed, 27 Nov 2024 02:49:11 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 27 Nov 2024 02:49:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SmPpYM0pHiCJCnnFtx6rWRiWehzhZqZ6J4nAFurDd7TcYmMKwn5dA0X5ocz+kshWQV71GnqrpfHhoSpDlTUAVUxxqu3+6fOghOyMtCjiLbYIbcGUYZcwtN8/5vkaxncPo2Mve3Qxmf5uN0AZRwz8+Ixd+TnEdW+Ax2KlpBlorIW/zqm4oN/dZQG7fR2thl67cB0C2i1SogPzJrNsXIqfbz/x6A2I82qs/5RzbGabC5057ZhWPErecbaxGg9h3M9mQ5bj+mD8DSGj3WcqkgnajAoHrUa449CzWIxreX0NWsn0Hz9ZSLFLH1t71SSk8ULmeLtLeHuKJIwtWEXJ4syqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=T0vQH9B8lLeQ6x/Advq2gf/Lo3XXzCFWSlUeKJsdTtw=; b=haY5Ynb2POk0XUF/NAXLrStTCy1oWrFbsRtBwMCAe6IMY9pAID8oK2U+d6lVdFGedbm947TqW/lOftQCJmWShWRctll+q3CdjTXjXZPPPHsAMFQ7wH1h/A45pg3xMy0Nh+RQXezoaibM+ofIiM1Tg53Z61N5bX+WLX57f07YE0qxxIKymPdU7jBaVeui0ywDgG/YTXWmGsF0HhmI7B7VLWVZgZunaDKePgNqT7Gfg7M1vX7+W03LLyfcJhjS3wW9faYYEWQB2CxzbUTjmng2aABk8Jb26SqM6prip3A43rcIuOakTR0K8aaUN17BGjbuzbtS4xNvTsWMf5VLzSDuvw== 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 Received: from PH0PR11MB5832.namprd11.prod.outlook.com (2603:10b6:510:141::7) by CY8PR11MB6985.namprd11.prod.outlook.com (2603:10b6:930:57::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.13; Wed, 27 Nov 2024 10:49:05 +0000 Received: from PH0PR11MB5832.namprd11.prod.outlook.com ([fe80::a467:823d:3fac:250a]) by PH0PR11MB5832.namprd11.prod.outlook.com ([fe80::a467:823d:3fac:250a%4]) with mapi id 15.20.8207.010; Wed, 27 Nov 2024 10:49:05 +0000 From: "Gujjar, Abhinandan S" To: "Ma, WenwuX" , "ajit.khaparde@broadcom.com" , "somnath.kotur@broadcom.com" , "amitprakashs@marvell.com" , "dev@dpdk.org" , "stable@dpdk.org" CC: "Liao, TingtingX" Subject: RE: [PATCH 2/3] eventdev: fix uninitialized variable Thread-Topic: [PATCH 2/3] eventdev: fix uninitialized variable Thread-Index: AQHbPwhdykx2abUzpEaNEMJnMTvtI7LK9Odg Date: Wed, 27 Nov 2024 10:49:05 +0000 Message-ID: References: <20241125064755.3943-1-wenwux.ma@intel.com> <20241125064755.3943-3-wenwux.ma@intel.com> In-Reply-To: <20241125064755.3943-3-wenwux.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5832:EE_|CY8PR11MB6985:EE_ x-ms-office365-filtering-correlation-id: 66ae908d-5fdd-4a0f-7b63-08dd0ed11ced x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|7053199007|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?kXG6soSe0hrFryf+V6CkN5fokur3y10LAP+l3ayj3Ud/YDtKjeOWX+xYzucs?= =?us-ascii?Q?gwje2HBRfDe7J6exmNQufw39/Oksy8cNzmqM+9dahJAh8p62agMQlx1KFn/Y?= =?us-ascii?Q?jg6fT/7DQXDDe6b27mlO+Q2oHj6TCcRSVnvt5nW5eroRKozBleJd0LAIwNme?= =?us-ascii?Q?yCOoob9rnLEdCHbvmnBpHd5/KOb1stAds5MlPUin8evFPeMM6ZH/APR+1iCC?= =?us-ascii?Q?pUFvZho0ft8WenVME4aXqMsAEpZXEfmOxn9TX0qhUynxjl87f1RdmPbYIV9u?= =?us-ascii?Q?FubBvi/4sJeYT3QcB1HPXj7Y9ew5JMfil5vTuy7J2r4xfm6lhpdzjahRf2DZ?= =?us-ascii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JyVfKDoNrP?= =?us-ascii?Q?EKvfMTGqla+pZhcnOJkLJnqysH59+FGWb87sDter36JtLLhYXh8yiEd9ordc?= =?us-ascii?Q?3t8mFtWFFpcfrpIkb8cmsJzkWdFI3Ly286Lbt3KTjCy/sQqncsNFgK5epsLP?= =?us-ascii?Q?sT9cjPUlUN6MTDNvikFXMdEWcSML2CK2bnS2+LGYLDanxCLNuQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5832.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7053199007)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2HjYpQn6uNP4oFupjXZgpsNsG8rRIWQpoWctYCiFoOzJ3xRNkGtuDqT6u/x1?= =?us-ascii?Q?JVHx1PXDutSK49w3HLHrW0kKxw0zn4HoIKEo2AdmlBZyLe3Wi8WgxwfxT7Fe?= =?us-ascii?Q?8YJTMjzEN3ft0jXPHMV929FPmDXAUsJw5VZfdo1wUpg3bRFpQw6r/9b+w5xi?= =?us-ascii?Q?OytZ6Dm4YHl5Z/J544sVbjxKoCt9x9P4sJrGEz389x55ds20QfgZO6BPNfbJ?= =?us-ascii?Q?lv46yXg+TZqVPWuqvuBnkAe2K0XNGffUabCs9ExEw6afMyAB+UTD1SHsGnel?= =?us-ascii?Q?4LZ2FYQkDgN/YSZb3wNh/iL1aJGK8pb4a7CrpPDA3gOhKce/UU+mKilQN8Bd?= =?us-ascii?Q?fiCg50Bv0MfIrZJXmD0sPllmOYaYdDAPAyZPS9yPZZ4nmoVTRJB2dYjw09EC?= =?us-ascii?Q?GAJHCf6FtS0lDDbai+O3zaW7mX3Av3wURdlRfE3LWya7R2J/7dc6tJvNeqxK?= =?us-ascii?Q?U5tWs6BXcCHA5xQq7TXOHg+Y3yC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itPFJUZNKPCbcHX+MBUWPLdaJPwSpMuKZfEsXIhVNN1N87MFHN3?= =?us-ascii?Q?JpZajX19ajf2vzm5IIbhNeXFDvu7F4OcLizptrzrbnNpH1EotbXDqSWIMyR7?= =?us-ascii?Q?qkOrJr/L+ERFDX/gHDNn7y6cXe6gyIzQ6onFN1wddIyTK1bPRYeFbGG3J0go?= =?us-ascii?Q?v4QI0GeiocKTKW5TmFU9DS+Z6ElxXhQmjaMh9GGR?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5832.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66ae908d-5fdd-4a0f-7b63-08dd0ed11ced X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2024 10:49:05.2470 (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: N+WIlM96iTlZKQhlPt+VcWUxUji1W3cHEppcVz8Gt88g0Vok4+NWFs79WEXlJSbRroPbaVyOvC9aWZN84U4aQy13C/HVf+FDAM9s+4ahQXg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6985 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: Ma, WenwuX > Sent: Monday, November 25, 2024 12:18 PM > To: ajit.khaparde@broadcom.com; somnath.kotur@broadcom.com; > amitprakashs@marvell.com; Gujjar, Abhinandan S > ; dev@dpdk.org; stable@dpdk.org > Cc: Liao, TingtingX ; Ma, WenwuX > > Subject: [PATCH 2/3] eventdev: fix uninitialized variable >=20 > This patch fixes the variable 'events' may be used uninitialized. >=20 > Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wenwu Ma > --- > lib/eventdev/rte_event_crypto_adapter.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/lib/eventdev/rte_event_crypto_adapter.c > b/lib/eventdev/rte_event_crypto_adapter.c > index 939ca1cad9..1ca839510b 100644 > --- a/lib/eventdev/rte_event_crypto_adapter.c > +++ b/lib/eventdev/rte_event_crypto_adapter.c > @@ -685,6 +685,7 @@ eca_ops_enqueue_burst(struct > event_crypto_adapter *adapter, > nb_ev =3D 0; > retry =3D 0; > nb_enqueued =3D 0; > + memset(events, 0, sizeof(events)); There is a rte_memcpy() at line number 699 which is copying response inform= ation as event into this. So, that will initialize all the event fields. We don't require to initiali= ze events here. > num =3D RTE_MIN(num, BATCH_SIZE); > for (i =3D 0; i < num; i++) { > struct rte_event *ev =3D &events[nb_ev++]; > -- > 2.34.1