From: Olivier Matz Date: Wed, 29 Nov 2017 09:55:00 +0000 (+0100) Subject: vhost: fix error code check when creating pthread X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=inline;h=9ccf7e832c2a1f5a7140dc268e0c74de6e75869d;hp=9ccf7e832c2a1f5a7140dc268e0c74de6e75869d;p=dpdk.git vhost: fix error code check when creating pthread 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 ---