net/virtio-user: fix return value check
authorChenbo Xia <chenbo.xia@intel.com>
Wed, 10 Apr 2019 02:44:05 +0000 (02:44 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit1e9868885f2ed388e827e8ce27d4b690c9b2fb90
tree44ec0f8b180134e34ceccd9945ce8f15a560b95f
parent8f37e38241f291f2ae8fa7e8d0d4ec3eae50b2de
net/virtio-user: fix return value check

Fix unchecked return value for fcntl.

Coverity issue: 277210
Fixes: bd8f50a45d0f ("net/virtio-user: support server mode")
Cc: stable@dpdk.org
Signed-off-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_user/vhost_user.c