vhost: fix initialization
authorZhiyong Yang <zhiyong.yang@intel.com>
Mon, 10 Jul 2017 08:06:48 +0000 (16:06 +0800)
committerYuanhan Liu <yliu@fridaylinux.org>
Wed, 19 Jul 2017 19:49:47 +0000 (22:49 +0300)
commit78b2e3bae1af7fc8b9994193ff90846fa5520eb7
treed6a1c4475aa1a2f6c68d49a5afdc483fd6b43013
parent39f403e0d5bbba765a42baf975b06ea4736c4cc7
vhost: fix initialization

Exception handling is executed in the normal path and it will cause
vhost-user init failure.

Fixes: d6983a70e259 ("vhost: check return of pthread calls")

Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/socket.c