net/virtio-user: check error on clearing non block flag
authorSebastian Basierski <sebastianx.basierski@intel.com>
Tue, 14 Nov 2017 10:39:56 +0000 (11:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Feb 2018 21:09:17 +0000 (22:09 +0100)
commitf76ef453320c972ebb3aa68cb0f3b989879b1077
treee3103f9ba29325b0b3d0bde95511682b4d3e6406
parent378cc7f569a678e1c8469094104b757864c4ad05
net/virtio-user: check error on clearing non block flag

Report error message if clearing O_NONBLOCK flag will fail,
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: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user_ethdev.c