From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8638A2C12 for ; Fri, 30 Mar 2018 09:41:52 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2018 00:41:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,380,1517904000"; d="scan'208";a="216206143" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 30 Mar 2018 00:41:48 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 30 Mar 2018 00:41:48 -0700 Received: from BGSMSX107.gar.corp.intel.com (10.223.4.191) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 30 Mar 2018 00:41:48 -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 13:11:45 +0530 From: "Yang, Zhiyong" To: "Yang, Zhiyong" , 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+9qqPm432AgAEvqaCAAF+wMA== Date: Fri, 30 Mar 2018 07:41:45 +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: 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 07:41:53 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBZYW5nLCBaaGl5b25nDQo+IFNlbnQ6IEZy aWRheSwgTWFyY2ggMzAsIDIwMTggMTA6MDEgQU0NCj4gVG86IE1heGltZSBDb3F1ZWxpbiA8bWF4 aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+OyBkZXZAZHBkay5vcmcNCj4gQ2M6IFRhbiwgSmlhbmZl bmcgPGppYW5mZW5nLnRhbkBpbnRlbC5jb20+OyBXYW5nLCBaaGlob25nDQo+IDx6aGlob25nLndh bmdAaW50ZWwuY29tPjsgdGhvbWFzQG1vbmphbG9uLm5ldDsgV2FuZywgRG9uZzENCj4gPGRvbmcx LndhbmdAaW50ZWwuY29tPjsgQmllLCBUaXdlaSA8dGl3ZWkuYmllQGludGVsLmNvbT4NCj4gU3Vi amVjdDogUmU6IFtkcGRrLWRldl0gW1BBVENIIHYzIDQvNF0gbmV0L3Zob3N0OiBhZGQgTlVMTCBw b2ludGVyDQo+IGNoZWNraW5nDQo+IA0KPiBIaSBNYXhpbWUsDQo+IA0KPiA+IC0tLS0tT3JpZ2lu YWwgTWVzc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