From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D45FA2EFC for ; Mon, 14 Oct 2019 15:49:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6FED1C2F9; Mon, 14 Oct 2019 15:49:07 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 6674A1C2E8 for ; Mon, 14 Oct 2019 15:49:02 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 06:49:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,295,1566889200"; d="scan'208";a="278870097" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 14 Oct 2019 06:49:00 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 14 Oct 2019 06:49:00 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.4.49]) by FMSMSX155.amr.corp.intel.com ([169.254.5.15]) with mapi id 14.03.0439.000; Mon, 14 Oct 2019 06:49:00 -0700 From: "Harris, James R" To: David Marchand CC: dev , "Burakov, Anatoly" Thread-Topic: [dpdk-dev] [PATCH] vfio: free mp_reply msgs in failure cases Thread-Index: AQHVgoEatDa7QNpeaECkYdIoq2/RTadaJ0KA Date: Mon, 14 Oct 2019 13:49:00 +0000 Message-ID: <54B140F8-B8E4-450B-908F-55DC7D7ED753@intel.com> References: <156595762238.18723.10089009448135563310.stgit@jrharri1-skx> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.10.e.190909 x-originating-ip: [10.252.140.67] Content-Type: text/plain; charset="utf-8" Content-ID: <4051DF373993C84BB4844FB4C999844A@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vfio: free mp_reply msgs in failure cases 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCu+7v09uIDEwLzE0LzE5LCA0OjE4IEFNLCAiRGF2aWQgTWFyY2hhbmQiIDxkYXZpZC5tYXJj aGFuZEByZWRoYXQuY29tPiB3cm90ZToNCg0KICAgIE9uIEZyaSwgQXVnIDE2LCAyMDE5IGF0IDk6 MTkgUE0gSmltIEhhcnJpcyA8amFtZXMuci5oYXJyaXNAaW50ZWwuY29tPiB3cm90ZToNCiAgICA+ DQogICAgPiBUaGUgY29kZSBjaGVja3MgYm90aCBydGVfbXBfcmVxdWVzdF9zeW5jKCkgcmV0dXJu DQogICAgPiBjb2RlIGFuZCB0aGF0IHRoZSBudW1iZXIgb2YgbWVzc2FnZXMgaW4gdGhlIHJlcGx5 DQogICAgPiBlcXVhbHMgMS4gIElmIHJ0ZV9tcF9yZXF1ZXN0X3N5bmMoKSBzdWNjZWVkcyBidXQN CiAgICA+IHRoZXJlIHdhcyBtb3JlIHRoYW4gb25lIG1lc3NhZ2UsIHRob3NlIG1lc3NhZ2VzDQog ICAgPiB3b3VsZCBnZXQgbGVha2VkLg0KICAgID4NCiAgICA+IEZvdW5kIHZpYSBjb2RlIHJldmll dyBieSBBbmF0b2x5IEJ1cmFrb3Ygb2YgcGF0Y2hlcw0KICAgID4gdGhhdCB1c2VkIHRoZSB2aG9z dCBjb2RlIGFzIGEgdGVtcGxhdGUgZm9yIHVzaW5nDQogICAgPiBydGVfbXBfcmV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9yZXAtPmZkc1swXSBpbnRvIGEgbG9jYWwgdmFyaWFibGUg YmVmb3JlIHdlIGZyZWUgdGhhdCBhcnJheS4gIFRoYXQgd291bGQgYmUgYSBnb29kIGZvbGxvdy11 cCBwYXRjaCENCg0KLUppbQ0KDQogICAgPiAgICAgICAgICAgICAgICAgfQ0KICAgID4gLSAgICAg ICAgICAgICAgIGZyZWUobXBfcmVwbHkubXNncyk7DQogICAgPiAgICAgICAgIH0NCiAgICA+DQog ICAgPiArICAgICAgIGZyZWUobXBfcmVwbHkubXNncyk7DQogICAgPiAgICAgICAgIFJURV9MT0co RVJSLCBFQUwsICIgIGNhbm5vdCByZXF1ZXN0IGRlZmF1bHQgY29udGFpbmVyIGZkXG4iKTsNCiAg ICA+ICAgICAgICAgcmV0dXJuIC0xOw0KICAgID4gIH0NCiAgICANCiAgICANCiAgICANCiAgICAt LSANCiAgICBEYXZpZCBNYXJjaGFuZA0KICAgIA0KICAgIA0KDQo=