examples/vhost_blk: check driver start failure
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 25 Sep 2020 11:22:06 +0000 (19:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 21:16:55 +0000 (23:16 +0200)
commitdc9e658013d9c2be798f9ff43b8cd2c63c844f17
tree49f71dd9dd7fc87c6a1ada93f7a51d9aa91ebc2b
parente2572e43f1721446feb1a849b281d47a9cb7bfd2
examples/vhost_blk: check driver start failure

This checks the return value from the function
rte_vhost_driver_start.

Coverity issue: 362027
Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
examples/vhost_blk/vhost_blk.c