[dpdk-dev] [PATCH v3] net/vhost: fix return value of vhost creates not checked

Tiwei Bie tiwei.bie at intel.com
Tue Jan 7 06:08:01 CET 2020


On Tue, Jan 07, 2020 at 11:25:48AM +0800, Yunjian Wang wrote:
> 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 at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> ---
> v3:
>  * Add newline at the end of the error message
> v2:
>  * Change function eth_dev_vhost_create return 0 on success
> ---
>  drivers/net/vhost/rte_eth_vhost.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Tiwei Bie <tiwei.bie at intel.com>


More information about the dev mailing list