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

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jan 9 16:50:56 CET 2020



On 1/7/20 6:08 AM, Tiwei Bie wrote:
> 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>
> 


Applied to dpdk-next-virtio/master.

Thanks,
Maxime



More information about the stable mailing list