net/igc: fix boundary checks for RSS
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 8 May 2020 08:54:37 +0000 (16:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:07 +0000 (20:35 +0200)
commit23d8a6648f3200bc5c02ca34c37729651409681e
treedc1c6d441052a8a5a29b67ad7dd17fb8a28cde2e
parent3a19eeb0c3329905fbb927fdbac90e548061130d
net/igc: fix boundary checks for RSS

Fix some out-of-bounds memory issues, they may lead to wrong results
or affect application stability.

Coverity issue: 357759, 357713
Fixes: bd3fcf0d0fa1 ("net/igc: support RSS")

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Reviewed-by: Jeff Guo <jia.guo@intel.com>
drivers/net/igc/igc_ethdev.c