From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 715731B027; Thu, 21 Sep 2017 11:49:32 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2017 02:49:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,424,1500966000"; d="scan'208";a="902516192" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 21 Sep 2017 02:49:30 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 21 Sep 2017 02:49:30 -0700 Received: from lcsmsx154.ger.corp.intel.com (10.186.165.229) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 21 Sep 2017 02:49:30 -0700 Received: from hasmsx107.ger.corp.intel.com ([169.254.2.222]) by LCSMSX154.ger.corp.intel.com ([169.254.7.81]) with mapi id 14.03.0319.002; Thu, 21 Sep 2017 12:49:27 +0300 From: "Kozak, KubaX" To: Patrick MacArthur , "Burakov, Anatoly" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] vfio: fix close unchecked file descriptor Thread-Index: AQHTMfd8o2jmFBSA6EeVoXVccU+cI6K9pQUAgAABRQCAAMX+gIAArFBg Date: Thu, 21 Sep 2017 09:49:26 +0000 Message-ID: References: <1505901573-463-1-git-send-email-kubax.kozak@intel.com> <3abbb473-6d7f-9b48-d33f-59bd098e0ebf@intel.com> <56ae6eed-85a5-0dcb-22d1-8567f0d5d342@patrickmacarthur.net> In-Reply-To: <56ae6eed-85a5-0dcb-22d1-8567f0d5d342@patrickmacarthur.net> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.103.102.51] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vfio: fix close unchecked file descriptor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2017 09:49:33 -0000 SGksDQoNClJlZmVycmluZyB0byBQYXRyaWNrIHN1Z2dlc3Rpb24gSSdsbCBwcmVwYXJlIHBhdGNo IHdpdGggIChmZCA+PSAwKSBjb25kaXRpb24uDQoNClRoYW5rcywNCkt1YmENCg0KPiAtLS0tLU9y aWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBQYXRyaWNrIE1hY0FydGh1ciBbbWFpbHRvOnBh dHJpY2tAcGF0cmlja21hY2FydGh1ci5uZXRdDQo+IFNlbnQ6IFRodXJzZGF5LCBTZXB0ZW1iZXIg MjEsIDIwMTcgMDQ6MjgNCj4gVG86IEJ1cmFrb3YsIEFuYXRvbHkgPGFuYXRvbHkuYnVyYWtvdkBp bnRlbC5jb20+OyBLb3phaywgS3ViYVggPGt1YmF4LmtvemFrQGludGVsLmNvbT4NCj4gQ2M6IGRl dkBkcGRrLm9yZzsgc3RhYmxlQGRwZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0hdIHZmaW86 IGZpeCBjbG9zZSB1bmNoZWNrZWQgZmlsZSBkZXNjcmlwdG9yDQo+IA0KPiBPbiAwOS8yMC8yMDE3 IDEwOjM5IEFNLCBCdXJha292LCBBbmF0b2x5IHdyb3RlOg0KPiA+IE9uIDIwLVNlcC0xNyAzOjM0 IFBNLCBQYXRyaWNrIE1hY0FydGh1ciB3cm90ZToNCj4gPj4gT24gMDkvMj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