net/vhost: check creation failure
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 7 Jan 2020 03:25:48 +0000 (11:25 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000 (19:46 +0100)
commitf04513bc89d90c2ad425f1be1e4716bb3c790fb2
tree82e7003933500b8e90a3da6d2d75e9f98c464ea2
parent74f45f872ce642156e3cec10f35575b8e61397de
net/vhost: check creation failure

The function eth_dev_vhost_create() could return errors,
the return value need to be checked.

Fixes: ee584e9710b9 ("vhost: add driver on top of the library")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/vhost/rte_eth_vhost.c