net/i40e: fix boundary check in RSS config
authorChenxu Di <chenxux.di@intel.com>
Thu, 14 May 2020 07:07:20 +0000 (07:07 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit5037d2e076a284b7e73ee3262164e9f9c42bd877
tree6f4144d97b7e4b941cb0aecda796d5838ca30b61
parent72babbc001e837c21e60d2bab554337af239f659
net/i40e: fix boundary check in RSS config

This patch fixes (out-of-bounds read) coverity issue.

Coverity issue: 357699, 357694
Fixes: feaae285b342 ("net/i40e: support hash configuration in RSS flow")

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Reviewed-by: Jeff Guo <jia.guo@intel.com>
drivers/net/i40e/i40e_ethdev.c