numam-dpdk/lib/librte_vhost
Olivier Matz da51d2f6b8 vhost: fix error code check when creating thread
On error, pthread_create() returns a positive number (errno).
Fix the test on the return value.

Fixes: af14759181 ("vhost: introduce API to start a specific driver")
Fixes: e623e0c6d8 ("vhost: add reconnect ability")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
2018-01-16 18:47:49 +01:00
..
fd_man.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
fd_man.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
iotlb.c vhost: fix IOTLB on NUMA realloc 2017-10-13 22:08:21 +02:00
iotlb.h vhost: add pending IOTLB miss request list and helpers 2017-10-10 15:52:27 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_vhost_version.map vhost: introduce vring call API 2018-01-16 18:47:49 +01:00
rte_vhost.h vhost: introduce vring call API 2018-01-16 18:47:49 +01:00
socket.c vhost: fix error code check when creating thread 2018-01-16 18:47:49 +01:00
vhost_user.c vhost: destroy unused virtqueues when multiqueue not negotiated 2018-01-16 18:47:49 +01:00
vhost_user.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
vhost.c vhost: support virtqueue interrupt/notification suppression 2018-01-16 18:47:49 +01:00
vhost.h vhost: support virtqueue interrupt/notification suppression 2018-01-16 18:47:49 +01:00
virtio_net.c vhost: support virtqueue interrupt/notification suppression 2018-01-16 18:47:49 +01:00