net/bnxt: check PCI config read
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 30 Apr 2021 20:14:11 +0000 (13:14 -0700)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Sun, 2 May 2021 22:17:17 +0000 (00:17 +0200)
commit52c33734587a135b55ff968626eabbd1167993b7
tree12721f3475b6a527efd1a542959b993bdfde4ee1
parentc8e8154390b38f9242249eb1e023df1db976a285
net/bnxt: check PCI config read

Return value where return value of rte_pci_read_config was not checked.
Fix it.

Coverity issue: 349919
Fixes: 9d0cbaecc91a ("net/bnxt: support periodic FW health monitoring")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c