net/virtio: check error on setting non block flag
authorSebastian Basierski <sebastianx.basierski@intel.com>
Tue, 24 Oct 2017 08:17:38 +0000 (10:17 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Oct 2017 19:29:47 +0000 (21:29 +0200)
commit2fd826a301b5a872cad0b67c807d3011693321c7
treebd8bdd234dc342037a8cd1d754fc269bae2a04c9
parent3a643acd4fcc22d3694978a96b0d1112d0a5e8c5
net/virtio: check error on setting non block flag

Report an error message if the flag O_NONBLOCK setting fails,
then return from function.

Coverity issue: 143439
Fixes: ef53b6030039 ("net/virtio-user: support LSC")
Cc: stable@dpdk.org
Signed-off-by: Sebastian Basierski <sebastianx.basierski@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_user_ethdev.c