vfio: fix socket option check
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 22 Apr 2016 13:17:09 +0000 (15:17 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 27 Apr 2016 15:41:46 +0000 (17:41 +0200)
commitcae470b3bfcd2fed2ec29b83e38a3ea78db8e5a1
treeb5d3b5fc0de9e85c356a9a8b5523efd40d878109
parent9a31bd15d5a5e6e02acf76dd3d5a632ffa3d4687
vfio: fix socket option check

Fix issue reported by Coverity.
Coverity ID 13194

The function returns a value that indicates an error condition. If this
is not checked, the error condition may not be handled correctly.

Fixes: 2f4adfad0a69 ("vfio: add multiprocess support")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci_vfio_mp_sync.c