net/ring: fix return value check
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Apr 2019 15:23:32 +0000 (16:23 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commite0474b94f8a36672d66be7408e3f7cf00e302329
tree076f59de24c90e3ee3b3d3c43605bbba61e7e5cf
parent70a6aeb4639b633bc322834bb6f07b6c45c7e52b
net/ring: fix return value check

'rte_eth_dev_get_port_by_name()' return value is not checked caught by
coverity, adding return value check.

Coverity issue: 305853
Fixes: 96cb19521147 ("net/ring: use EAL APIs in PMD specific API")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/ring/rte_eth_ring.c