net/hns3: check PCI config space reads
authorHongbo Zheng <zhenghongbo3@huawei.com>
Tue, 29 Sep 2020 12:01:16 +0000 (20:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Oct 2020 17:58:10 +0000 (19:58 +0200)
commit243651cb6c8ca98ba7790d564f3d50cf9cd6c923
treec964761a0456b9cc56f168cdcd28aca3a41c03c4
parentfa29fe45a7b415f718d2bf53fad62c8961734672
net/hns3: check PCI config space reads

This patch add return value check when calling rte_pci_read_config
function.

Fixes: cea37e513329 ("net/hns3: fix FLR reset")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c