net/ice: fix VSI array out of bounds access
authorJie Wang <jie1x.wang@intel.com>
Wed, 12 May 2021 03:14:07 +0000 (03:14 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 12 May 2021 12:21:09 +0000 (14:21 +0200)
commitd7ea27d065ebe3206c0739c67bf66510c0ac79a1
tree38f14f2590ca43618535d8c250417b3c4ab87de0
parent2444d35dc14621c185a8c5042adfb636e5056d2b
net/ice: fix VSI array out of bounds access

In the loop, when the index of array "vsi->rss_key" is equal
to "vsi->rss_key_size", the array will be accessed out of bounds.

Fixes: 50370662b727 ("net/ice: support device and queue ops")
Cc: stable@dpdk.org
Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c