net/hns3: check PCI config space write
authorLijun Ou <oulijun@huawei.com>
Mon, 9 Nov 2020 14:29:00 +0000 (22:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commit6dd32ded17d85eec8c15f4635b668528520256c4
treef88406172a36aebb4209bb4d90e16d24afb00277
parentd3d31324365ba2fd88ab1407c4f990cc41c5d3b7
net/hns3: check PCI config space write

Here adds a check for the return value when calling
rte_pci_write_config.

Coverity issue: 363714
Fixes: cea37e513329 ("net/hns3: fix FLR reset")
Cc: stable@dpdk.org
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c