net/e1000: fix PCI config read check
authorXiao Zhang <xiao.zhang@intel.com>
Sun, 4 Aug 2019 21:27:00 +0000 (05:27 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 6 Aug 2019 11:07:54 +0000 (13:07 +0200)
commit08141dc7e1d65744ce46e4421e4930c3b0af374b
treeedaa13a4921884f3756a3607c7635388803b1666
parentaae5d9a6e2fba3eda11e0d93c2be0d44b3612965
net/e1000: fix PCI config read check

Add return value checking when reading configure information from PCI
register to avoid Coverity issue.

Fixes: 1fc97012 ("net/e1000: fix i219 hang on reset/close")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/e1000/em_rxtx.c