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 7D2DF5F1C for ; Fri, 30 Mar 2018 04:00:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 19:00:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,378,1517904000"; d="scan'208";a="29637168" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 29 Mar 2018 19:00:35 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Mar 2018 19:00:35 -0700 Received: from BGSMSX107.gar.corp.intel.com (10.223.4.191) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Mar 2018 19:00:34 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.233]) by BGSMSX107.gar.corp.intel.com ([169.254.9.228]) with mapi id 14.03.0319.002; Fri, 30 Mar 2018 07:30:31 +0530 From: "Yang, Zhiyong" To: Maxime Coquelin , "dev@dpdk.org" CC: "Tan, Jianfeng" , "Wang, Zhihong" , "thomas@monjalon.net" , "Wang, Dong1" , "Bie, Tiwei" Thread-Topic: [PATCH v3 4/4] net/vhost: add NULL pointer checking Thread-Index: AQHTwMFGbThlCBt/PEiqAXrPbS+9qqPm432AgAEvqaA= Date: Fri, 30 Mar 2018 02:00:31 +0000 Message-ID: References: <20180214145330.4679-1-zhiyong.yang@intel.com> <20180321030343.64399-1-zhiyong.yang@intel.com> <20180321030343.64399-5-zhiyong.yang@intel.com> <1b93fd09-9802-bff7-bea4-5b4839860983@redhat.com> In-Reply-To: <1b93fd09-9802-bff7-bea4-5b4839860983@redhat.com> Accept-Language: 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.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 4/4] net/vhost: add NULL pointer checking 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: Fri, 30 Mar 2018 02:00:39 -0000 SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiBbbWFpbHRvOm1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tXQ0KPiBTZW50OiBU aHVyc2RheSwgTWFyY2ggMjksIDIwMTggOToyMCBQTQ0KPiBUbzogWWFuZywgWmhpeW9uZyA8emhp eW9uZy55YW5nQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzogVGFuLCBKaWFuZmVuZyA8 amlhbmZlbmcudGFuQGludGVsLmNvbT47IFdhbmcsIFpoaWhvbmcNCj4gPHpoaWhvbmcud2FuZ0Bp bnRlbC5jb20+OyB0aG9tYXNAbW9uamFsb24ubmV0OyBXYW5nLCBEb25nMQ0KPiA8ZG9uZzEud2Fu Z0BpbnRlbC5jb20+OyBCaWUsIFRpd2VpIDx0aXdlaS5iaWVAaW50ZWwuY29tPg0KPiBTdWJqZWN0 OiBSZTogW1BBVENIIHYzIDQvNF0gbmV0L3Zob3N0OiBhZGQgTlVMTCBwb2ludGVyIGNoZWNraW5n DQo+IA0KPiBIaSwNCj4gDQo+IE9uIDAzLzIxLzIwMTggMDQ6MDMgQU0sIHpoaXlvbmcueWF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