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 54760A04F3; Mon, 16 Dec 2019 07:38:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 937001C11D; Mon, 16 Dec 2019 07:38:37 +0100 (CET) Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id AF1121C11C; Mon, 16 Dec 2019 07:38:36 +0100 (CET) Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 26D293453840FD229CF6; Mon, 16 Dec 2019 14:38:35 +0800 (CST) Received: from DGGEMM421-HUB.china.huawei.com (10.1.198.38) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Dec 2019 14:38:34 +0800 Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.213]) by dggemm421-hub.china.huawei.com ([10.1.198.38]) with mapi id 14.03.0439.000; Mon, 16 Dec 2019 14:38:28 +0800 From: wangyunjian To: Tiwei Bie CC: "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "zhihong.wang@intel.com" , xudingke , "stable@dpdk.org" Thread-Topic: [PATCH] net/vhost: fix return value of vhost creates not checked Thread-Index: AQHVs60Ar1lXlGMa00uOvVVxnaOtM6e7tyqAgACVHFA= Date: Mon, 16 Dec 2019 06:38:28 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CDB8DA7@DGGEMM533-MBX.china.huawei.com> References: <1576458359-13848-1-git-send-email-wangyunjian@huawei.com> <20191216053315.GA133010@___> In-Reply-To: <20191216053315.GA133010@___> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.133.209.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] net/vhost: fix return value of vhost creates not checked 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" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogVGl3ZWkgQmllIFttYWls dG86dGl3ZWkuYmllQGludGVsLmNvbV0NCj4gU2VudDogTW9uZGF5LCBEZWNlbWJlciAxNiwgMjAx OSAxOjMzIFBNDQo+IFRvOiB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT4NCj4g Q2M6IGRldkBkcGRrLm9yZzsgbWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb207IHpoaWhvbmcud2Fu Z0BpbnRlbC5jb207DQo+IHh1ZGluZ2tlIDx4dWRpbmdrZUBodWF3ZWkuY29tPjsgc3RhYmxlQGRw ZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0hdIG5ldC92aG9zdDogZml4IHJldHVybiB2YWx1 ZSBvZiB2aG9zdCBjcmVhdGVzIG5vdCBjaGVja2VkDQo+IA0KPiBPbiBNb24sIERlYyAxNiwgMjAx OSBhdCAwOTowNTo1OUFNICswODAwLCBZdW5qaWFuIFdhbmcgd3JvdGU6DQo+ID4gVGhlIGZ1bmN0 aW9uIGV0aF9kZXZfdmhvc3RfY3JlYXRlKCkgY291bGQgcmV0dXJuIGVycm9ycywgdGhlIHJldHVy bg0KPiA+IHZhbHVlIG5lZWQgdG8gYmUgY2hlY2tlZC4NCj4gPg0KPiA+IEZpeGVzOiBlZTU4NGU5 NzEwYjkgKCJ2aG9zdDogYWRkIGRyaXZlciBvbiB0b3Agb2YgdGhlIGxpYnJhcnkiKQ0KPiA+IENj OiBzdGFibGVAZHBkay5vcmcNCj4gPg0KPiA+IFNpZ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