vdpa/ifc: check PCI config read
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 9 Mar 2021 08:43:15 +0000 (16:43 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 06:39:14 +0000 (08:39 +0200)
commit629d75653bc584a2927a87566bf00beea661f91b
tree2d70f39df57a07479568f6db0ae264b5d0d1d381
parent510f43fc5eb936a34ac38fc61fae871d1236a062
vdpa/ifc: check PCI config read

The return value of rte_pci_read_config should be checked.

Coverity issue: 302860
Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/ifc/base/ifcvf.c