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 A4462A0C4B; Thu, 21 Oct 2021 09:34:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27862410E2; Thu, 21 Oct 2021 09:34:57 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D43A840142 for ; Thu, 21 Oct 2021 09:34:55 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19L67tgM010474; Thu, 21 Oct 2021 00:34:54 -0700 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam07lp2046.outbound.protection.outlook.com [104.47.51.46]) by mx0a-0016f401.pphosted.com with ESMTP id 3bu2nrgbu9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Oct 2021 00:34:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QyI8L0MERslJJWTcWLU2Ho35r6JmiG8kA/i9uC8J82WQnrMm2Bh3GGPdq7BBFId3SrOrQk2qA4fEESCX36lW7UEPy4GxqP1xQ/lJWslXJMLSyv26M38KYJ4dvri0hNS3O1vPVHDn/07yzWWjPZ7t99Sk/YXLBDlg7nFwJ4p8xr6D3qjVTSQPNLwJgIyX4Zid8r+0XcIVaQDw+Kv+0q3W0Rd4GxFqPIWxMB62S+50vYhejzHZdJ8jNrEc6YOMV/hZEGdUqGVTtdHvfH11p/7SPboHIJtM3zZeUD1JzDbcm4f9QSxPK/UOxymlh9D82K9qsdfMn8asQkPXtTwOmKIfkA== 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=GBKjPnJLqq7lOdghGtbOoWbTtgSrgi+wK7I5P8c1jyU=; b=fNenShdfvK3OrXNPDtup5lXSC//qHGqWuwyRDhCI6A3Rw4qceIwFhMzpycl5n0t3Ua5kXTSmvl7wHWWuSjNMdbmLer+GB9jeWhpjKTwOp9R9xBPnZuzHf2XjbkzasFRpgT1FQo0VtyqupQ3IpDShrPEQeiDI/S7gPywWzSvqhLaKVdEL362696nY4IdZipnWjxy4QzuoDGn4b/2fY2nG96lMwhdHjPFUbKrBcISzkD7CGxKOIeqqmrl9IzbPZQBjm7YUVhjjghfupWVI9DWbFSEX5t7SDuxUFsfkiR9igttUk/Zpm0AwylJtXQlUInON2jQKRzDGOfRRT+IU79qjEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GBKjPnJLqq7lOdghGtbOoWbTtgSrgi+wK7I5P8c1jyU=; b=DgXGCS8rjK2ESJsDZtR96BkqjX1MknvPrGcc+F1TLzexTNsS+ipr7FN39mjIoH76Z95H3dAvf6P4ECOzEloD1ahm/mTFaiFPmJ80gmLtrHf3pFSgfI5VYD5OhWOYuZ4Hmsw5ZC8jhl98vYSv5WA9pZVfJP6hne5aPaQe95fWpMY= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by PH0PR18MB4088.namprd18.prod.outlook.com (2603:10b6:510:3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 21 Oct 2021 07:34:51 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::6012:f5c4:8b1b:5289]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::6012:f5c4:8b1b:5289%8]) with mapi id 15.20.4628.018; Thu, 21 Oct 2021 07:34:51 +0000 From: Pavan Nikhilesh Bhagavatula To: Erik Gabriel Carrillo , Jerin Jacob Kollanukkaran CC: "dev@dpdk.org" Thread-Topic: [EXT] [PATCH] eventdev: fix free of adapters storage Thread-Index: AQHXxe/y2j1DvjAt/kOLuS6ehkA/XavdEBWw Date: Thu, 21 Oct 2021 07:34:50 +0000 Message-ID: References: <20211020202021.1205135-1-erik.g.carrillo@intel.com> In-Reply-To: <20211020202021.1205135-1-erik.g.carrillo@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 95bf82bb-485d-4785-274e-08d994654482 x-ms-traffictypediagnostic: PH0PR18MB4088: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wh7Kf3d9Q2fekpGu2PD5OJNq0Q0Dz7fY+9y+Tu/wbKItxVckc3gSs1tDCdM8+4nas8ajKXPT/kvHTiOu4ka8vbsKj8Hijo51Vv4TKSlCgt/z97By92oa9nBaN6/elF11uYPsS/qOHQ6qz6lyXtlxb2vccqSHo69jrN1HlULdlJTtf2iPuT+3Zd28gCMH4InbcvraKg7Tr6HF5D02aWTx9PgL2NEnkEDAEU38q7oXXBZaxGf8Gbp4yjIukmzlEH1jydkgp/eoljoRF7z0XM06sTgyV2Y3zPGkTLue8qc3cVX/RNTxyafocypSYlyYpzkQk1EeBFyQW1rQl+5KeA/MEPqgl1EJChyiVzMRxHwsA7VdSrmmshKkMtHFMdcZoBXDQOyFN0DMx02dJnkcSSrbqaT6COFyTmYFwErYR7yGfFcpCtP79SGxSPtxuUoRlc6Hc5oc1DzpqQB83PbFNgyoISjYmPbFXGcEMLbvaTsktIAyLRtPtHcO/CgsXWJUbeyCBcINEBid5Bc+twKCz0gskfaUDsGqMcZxukWd4hirco5L5sfEglNvFWnag54N1DjOS20hTXTSSWOWXG7iX7xWr3puikbiDsSXbq25nTbBusXyw2fdEU41f9W+brGtboERdSp0XNfbWLYbRUePNnSWi0oRHQRERdfY1//7YVJd1UGLeFlpzZMCNqk8vK1DknNtscqsxO3KNCObgY11XkmbaQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(9686003)(55016002)(6506007)(7696005)(8936002)(38100700002)(122000001)(110136005)(316002)(38070700005)(8676002)(86362001)(52536014)(4326008)(71200400001)(33656002)(5660300002)(186003)(508600001)(66476007)(66556008)(64756008)(66446008)(66946007)(76116006)(6636002)(2906002)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eQ6p9OM+NgWrVJeRbXzfSfyzvq7FELerE7nrm8UTXGr7S/xsOyy0K5cPRaxr?= =?us-ascii?Q?fnETU99g3HySM9ORhw5Dq8HbjSfEMb4vLbYFRJYS3MpaWACgmSimyJc139fy?= =?us-ascii?Q?G4eCmAUpYV8e8SBteNjGjd4xb2Bn+zduRtu9pq0+XYiA33BQj8sfKieUTCN/?= =?us-ascii?Q?el2M0IzzhDI+/p/eb8RVKr44FW/Dbir7aNKlqkFXFgBXK9VgMw2dCxjF/rVT?= =?us-ascii?Q?T/jYITxJgGA5KD1IzCpJQfZLeiv+TNh3/I4sIuwXpwndkn00LM81N9VpgIub?= =?us-ascii?Q?k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AXBsZt1sjt35NU4Bp6ie3?= =?us-ascii?Q?Q3bVPZkjJcSZRUavtV18FkZOafeRPw3Icw2yoROdV8itv19J75ZiAm8P9L4L?= =?us-ascii?Q?uEyV22bNJik5zPrN/smbq9UmOzoxQe1brj/G0hcOduJDGpEgbS1I90udLdAj?= =?us-ascii?Q?sP0SyhtsNQqymoaNKpr1pOcWlz9CR7T/n0KrXxhWXKYoo444/uNAfhmNvorX?= =?us-ascii?Q?YUCLCSYwZxo2uCTSj3fpFd3uFwAwRsySIcBxvp4fLpZZ2/yqHyLRf4qd3MYp?= =?us-ascii?Q?I5GRs95/iJ7TYXIZWUC5aoud5Uvl+5PZN9qQEts0xN56H43VWJydSl2qiRp5?= =?us-ascii?Q?W57pLR1Df269pTLE+wd3ZeiR3f4DaI6Ibf5j?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95bf82bb-485d-4785-274e-08d994654482 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2021 07:34:50.9762 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pbhagavatula@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB4088 X-Proofpoint-ORIG-GUID: 8CpYZyI0RfOO7iCrcp53urMhkGDu3wUh X-Proofpoint-GUID: 8CpYZyI0RfOO7iCrcp53urMhkGDu3wUh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-21_02,2021-10-20_02,2020-04-07_01 Subject: Re: [dpdk-dev] [EXT] [PATCH] eventdev: fix free of adapters storage 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 Sender: "dev" >-----Original Message----- >From: Erik Gabriel Carrillo >Sent: Thursday, October 21, 2021 1:50 AM >To: Jerin Jacob Kollanukkaran ; Pavan Nikhilesh >Bhagavatula >Cc: dev@dpdk.org >Subject: [EXT] [PATCH] eventdev: fix free of adapters storage > >External Email > >---------------------------------------------------------------------- >Fix a typo that can cause the hugepage memory that backs the adapters >array to be freed unexpectedly. > >Fixes: e9caa6a09a "eventdev: move timer adapters memory to >hugepage") > >Signed-off-by: Erik Gabriel Carrillo LGTM, Jerin please squash as the series is not in main branch yet. Thanks. Acked-by: Pavan Nikhilesh >--- > lib/eventdev/rte_event_timer_adapter.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/lib/eventdev/rte_event_timer_adapter.c >b/lib/eventdev/rte_event_timer_adapter.c >index 86b6c3fc6f..0e21b7c475 100644 >--- a/lib/eventdev/rte_event_timer_adapter.c >+++ b/lib/eventdev/rte_event_timer_adapter.c >@@ -407,7 +407,7 @@ rte_event_timer_adapter_free(struct >rte_event_timer_adapter *adapter) > ret =3D 0; > for (i =3D 0; i < RTE_EVENT_TIMER_ADAPTER_NUM_MAX; i++) > if (adapters[i].allocated) >- ret =3D adapter[i].allocated; >+ ret =3D adapters[i].allocated; > > if (!ret) { > rte_free(adapters); >-- >2.23.0