net/ifc: check VFIO query error
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 26 Nov 2019 14:59:31 +0000 (09:59 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commitac466a1d6c7892cc835e1ccbcdc83336c2f44701
treee6cbf516a18bf97ec75466d0cba7b1ff1d981278
parent0adf23adcbb521cd45e2eb88e15aa57317828433
net/ifc: check VFIO query error

It's possible that we fail to get the IOMMU group of ifcvf device, this
patch adds a check on the return value.

Coverity issue: 349894
Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ifc/ifcvf_vdpa.c