net/iavf: fix RSS key access out of bound
authorHaiyue Wang <haiyue.wang@intel.com>
Wed, 19 May 2021 07:59:33 +0000 (15:59 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 10 Jun 2021 10:04:16 +0000 (12:04 +0200)
commit8ce5678f28a80871c9f4ef41ef52ba206ef5a17f
tree00111ed1def9bf9937f67212cd81ab47b807b2e0
parent46c451d905e8e27787a0471ecc1d31a4cde25a9e
net/iavf: fix RSS key access out of bound

The array rss_key has size 'vf->vf_res->rss_key_size', the array index
should be less than that.

Cc: stable@dpdk.org
Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_ethdev.c