[dpdk-stable] [dpdk-dev] [PATCH v3] net/virtio-user: fix return value of tap offload sets not checked

Maxime Coquelin maxime.coquelin at redhat.com
Wed Jan 15 12:17:49 CET 2020



On 1/13/20 8:40 AM, Yunjian Wang wrote:
> The function vhost_kernel_tap_set_offload() could return errors,
> the return value need to be checked. And there is no need to fail
> when error is -ENOTSUP.
> 
> Fixes: 1db4d2330bc8 ("net/virtio-user: check negotiated features before set")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> ---
> v3:
>   * Fix return value check incorrectly in v2
> v2:
>   * No need to fail when error is -ENOTSUP.
> ---
>  drivers/net/virtio/virtio_user/vhost_kernel_tap.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)


Applied to dpdk-next-virtio/master

Thanks,
Maxime



More information about the stable mailing list