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 396F7A0562; Wed, 14 Apr 2021 12:16:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAC3016194B; Wed, 14 Apr 2021 12:16:23 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5D75B161944 for ; Wed, 14 Apr 2021 12:16:21 +0200 (CEST) IronPort-SDR: Z4bxU+H/SesszXLX/2Ezj4QDAdufTEG2ur+6LBmxLfqr9pEKxW1UhdoVZ44oQvpEma4klbnNum kmFIZyGxcb1A== X-IronPort-AV: E=McAfee;i="6200,9189,9953"; a="255928597" X-IronPort-AV: E=Sophos;i="5.82,221,1613462400"; d="scan'208";a="255928597" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 03:16:20 -0700 IronPort-SDR: tmgW6ERdl5BpBLUHIaysbDe2EN5u3x2wgN9ooZP8xaB7ZfiiZ3xZ6CVvf29Bhh8ypl8otZFnFd +GWNdttEdSWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,221,1613462400"; d="scan'208";a="521943306" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 14 Apr 2021 03:16:19 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 14 Apr 2021 03:16:19 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 14 Apr 2021 03:16:19 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2106.2 via Frontend Transport; Wed, 14 Apr 2021 03:16:19 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.104) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Wed, 14 Apr 2021 03:16:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y9EbTEQm2I3jtoC8xArQ5wpomMxKd/l8bkcJujsEtWecFJTOXNEBQYSMqSRuCkbl0i40kZCKem7ddKnF0DhFnB1BdbQa55cZhO2KjCyrxKhCiABaFio53jwTWV6b8s0GzRZceO75wv6CKKFAxu35PRzTlZ+nojW5uZu7crqgP0RvIUli3NaIrsoT6r6qqjF74qV8CZPHkltaRaUQypPR9RN+LOCG4xiRCJYR2MsICamvExnDSQUKDtZaEddrCxJaM8SXGxkBxU2P5/vLJsfD4xzgVnR4LN31pgKB0JA9j+y0jFe1H7xscojG6WYu3MKXucpcZ6HjvO9i//moIQDmFQ== 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=VZUieDP27Wh89klMe8lJytX+GFmfpYalritUJEHCgjI=; b=VXoUDqSu9Jvey7q0RXA94fhc3EpNFWt+XRtIglbikQsQ+D3qanPLH3nk06fKna/Ag38P6PA9ADifRsZQdiKipc97KLZ/GtgPFm5Ds+I80fofHwvd3Gs8EgIAiHOLE6Ky7zqzNwkbgdUySExpbN58E1LJOm7gpAwmtOLwZ6VXooD8YzWs1EU7G6RX11yFynv4YtR+AOxW7KvOcDuvDpagj/DoaogVNrshQLqm+wCVc1Ogiib4eKW8/CUNmnZ1AStSus6v2fGIcYeGjOTMHqMsWFroXXobJkr1WI0dGzgkmt7DrhBFKwM+Y3ZlPFHeXDqyIGTAakoz7GK05JDBnjGc2Q== 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=VZUieDP27Wh89klMe8lJytX+GFmfpYalritUJEHCgjI=; b=GglPVxey2dvjBANu0SaYDTB/cmtOq6ApqK7NG5Kgf6pORZVjYJVkAEUCiCFYno7zxZeaY34D3Xw9KA6LgsJ+8TZ8jMQpBLHQLaQmBMr8d/69zY5doR8cZJ8dDNnYT1G7UmXgoU35b3pKdrWY2FfQ8we/vscF+n8OCDlOKe6qUFk= Received: from BYAPR11MB3366.namprd11.prod.outlook.com (2603:10b6:a03:7f::20) by BYAPR11MB3575.namprd11.prod.outlook.com (2603:10b6:a03:b3::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.18; Wed, 14 Apr 2021 10:16:16 +0000 Received: from BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::ed18:33:3d2b:36d0]) by BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::ed18:33:3d2b:36d0%6]) with mapi id 15.20.4042.016; Wed, 14 Apr 2021 10:16:16 +0000 From: "Pattan, Reshma" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Hunt, David" Thread-Topic: [PATCH v2] power: fix resource leak Thread-Index: AQHXMRXy2db2XQSuZEWduowIlEMaeKqzy5yQ Date: Wed, 14 Apr 2021 10:16:15 +0000 Message-ID: References: <20210413122208.101057-1-anatoly.burakov@intel.com> <20210414100700.127129-1-anatoly.burakov@intel.com> In-Reply-To: <20210414100700.127129-1-anatoly.burakov@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [93.107.9.168] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a0e92e77-1b90-43c4-4434-08d8ff2e56a5 x-ms-traffictypediagnostic: BYAPR11MB3575: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qcBCmwqO6GCF9kpQoLHoOonNslCApMojkFk7HO4ojaEivkkcRh7kBQ1wflvgOIoaJC/FmQIfh7L7yj6nBa+tHXAtGXyUNEiJzF6L0BGsZf69TKWKT2J3CNqzUexYiUKqkjva7VsQ8ySVRF0+Sm5iMrHlnqp5siOIymzZ/Biljbn6KSFIT/Jgof35BQZwzC52oO3brcyDQ4MypAyoYal/2p3pNXRYaUxsEaxmsIgGWhmL+LszBHCKJY8v/ZdpKpVmUZMrY0SfOJ7thpYL4c9/kZd8+G4CVX2WERkgMDt5E0fdyZ92ifUADaBCoI0/IX/+V3qubHtp3FLUQk2U5WOQ5Ac9AqRz+64d1dof/ZeBqfCz2hu+RkqlurSzsnm/HH4QPsY0YQlzjktbeN6ew+1oQGxIG+nrj+Zjqcm64nGsRForbZXsaSOSzBFOMI77Y1l3D6J8Hqz9o4qKfI9lktUwzOF/helUTZxcWw4/uklnjAYfoRPF4/BdzPGw2FUJt4PCSDv1WdYioAxzdEmB+3tCtcGSE5yrzEfJDFYmvVZLUdXbORH7PUNgQGkbYWXW1Pv0qxpKnKDz+EE1HhunkdEik9EYyU9OkOr+flth5Rr2rAM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(396003)(376002)(39860400002)(346002)(366004)(5660300002)(38100700002)(8936002)(52536014)(66556008)(110136005)(26005)(9686003)(55016002)(122000001)(33656002)(478600001)(86362001)(66476007)(4326008)(83380400001)(76116006)(2906002)(558084003)(107886003)(7696005)(316002)(66446008)(66946007)(64756008)(6506007)(71200400001)(186003)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: aMIQxG7gWbwxcnzUMEg6/hpOmkZTyALcOu6Mpe7tPpQ/plQyEUCdj6lV+4kWNCMXFxnMlDEnvJTQ3f5QYHEPkVm8GGisZq0LxJcXLO0VRtSXfHXb7N17yqJqSx1774tgNvr8Sd0LvYZvN9PzPncnSbnPeO608fdF6JkD4H7f0XDZA3XL2wnq43hbpzuleAy7V6j2YOfwk6Tp+mya4nscfxxG1peD/S+FzEu2R1Taf2pJmlsJFBT0Ih6l4K/i9W6wAa1cprgGwdXtQh6tw2yOKWNBY/sCgcFcX9533ozNrTmo+eOl8L1McZWVfQvy/eA87QQxSiIGUdbf2yqvL2hjCjS3zUn6sb79Avrm8Styfb5Dt7MRrLZ80ru3qkKKCvY3KtiIl4KK9KdDH41+aJuolenSPLXuHsbJfb306OuSfhm03vjtmfsFKWDoqC5CA/dIaGcJdwr6FcoKToD1DcAuJDfdyqrMM8W2MESAYW4C4pD7UPzctyB7PM/OPxdTcFHHRl918sBQiE0ucDOXWh2KawqBMYj/n7FBJEyVTZ7Tze/iBlbl3AP7INgayut/2HLHaKV6azrpPy2yK1ZHHHEwxgjT0HQ+0BeXAEe+7PX9o7Wn9+pY39shGm5aCsT2s1ZPrykG+Sn9tOStkaCIX2rQuxVdyfX22C3HkldPB5ezVeBqIBy7sJDW20TSwDirthRRngAJVIMso8C81QmsCFAiUkf+xemnxHYad2HP+be9YUE= 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: BYAPR11MB3366.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0e92e77-1b90-43c4-4434-08d8ff2e56a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2021 10:16:15.9215 (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: b7fBCPyegmw9iijT8+IkpyyJIaNFxNP/EFvWP/tbZbuQVYUeaLB/6xvGrDNqMJvWChSyAkPHODhn1H/RzL22AA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3575 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] power: fix resource leak 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: Burakov, Anatoly > Coverity issue: 369693 >=20 > Fixes: 8a5febaac4f7 ("power: fix P-state base frequency handling") > v2: > - Move the fd close to before we check read data >=20 Acked-By: Reshma Pattan