net/softnic: fix out-of-bound access
authorSavinay Dharmappa <savinay.dharmappa@intel.com>
Mon, 19 Oct 2020 11:52:16 +0000 (12:52 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:24 +0000 (23:24 +0100)
commit45758e42183af0849843d43f55ab20978a1e8944
treefd1c828d0b2e454fda13c63e96a63a2db4cdd97b
parent40d466fa9f765b203058b81ce26ded7593df7c1e
net/softnic: fix out-of-bound access

This patch fixes out of bound access of an array.

Coverity issue: 363466, 363459
Fixes: b5dfa6703d49 ("net/softnic: update subport rate dynamically")
Cc: stable@dpdk.org
Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/softnic/rte_eth_softnic_tm.c