net/ring: check internal arguments
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 13 Oct 2020 13:07:04 +0000 (14:07 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:17 +0000 (19:48 +0200)
commite37bbe212d48a7375a6239478a114829d05692b5
tree7a3ee56dda216490c23d17d4f54ca0131c24a242
parent53a73b7b9db0e62394d94330f7f83c38748490b5
net/ring: check internal arguments

Add a check for the return value of the sscanf call in
parse_internal_args(), returning an error if we don't get the expected
result.

Coverity issue: 362049
Fixes: 96cb19521147 ("net/ring: use EAL APIs in PMD specific API")
Cc: stable@dpdk.org
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c