i40e: add constraints for accessing veb array
authorPiotr Kwapulinski <piotr.kwapulinski@intel.com>
Wed, 24 Apr 2019 12:20:47 +0000 (05:20 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 14 Jun 2019 19:59:16 +0000 (12:59 -0700)
commitf031c7227a4af718455918d28e7431f89b94d006
tree1c049c849b6db657e841832eb928d0e011a55766
parent51110f162d215beb13417426bc1ab9ce6320f1a1
i40e: add constraints for accessing veb array

Add veb array access boundary checks.
Ensure veb array index is smaller than I40E_MAX_VEB.

Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c