From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0EB92271; Mon, 11 Dec 2017 14:26:12 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3219C883D4; Mon, 11 Dec 2017 13:26:12 +0000 (UTC) Received: from [10.36.112.42] (ovpn-112-42.ams2.redhat.com [10.36.112.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5662517515; Mon, 11 Dec 2017 13:26:10 +0000 (UTC) To: Olivier Matz , dev@dpdk.org, Yuanhan Liu Cc: stable@dpdk.org References: <20171208101949.1768-1-olivier.matz@6wind.com> From: Maxime Coquelin Message-ID: Date: Mon, 11 Dec 2017 14:26:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171208101949.1768-1-olivier.matz@6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 11 Dec 2017 13:26:12 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] vhost: fix error code check when creating pthread 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: Mon, 11 Dec 2017 13:26:13 -0000 On 12/08/2017 11:19 AM, Olivier Matz wrote: > On error, pthread_create() returns a positive number (errno). > Fix the test on the return value. > > Fixes: af1475918124 ("vhost: introduce API to start a specific driver") > Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") > Cc: stable@dpdk.org > > Signed-off-by: Olivier Matz > --- > lib/librte_vhost/socket.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime