]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Add bounds check for ch[] array
authorPiotr Kwapulinski <piotr.kwapulinski@intel.com>
Wed, 24 Apr 2019 12:20:49 +0000 (05:20 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 14 Jun 2019 19:59:16 +0000 (12:59 -0700)
commit49da1961138f2ecd0730b968621f73cdc5ba2bba
tree05391fdf50b15a675d8f1cea507044f79bea9945
parent615e93ceca3cd88a30b8b08128e5137311e12eef
i40e: Add bounds check for ch[] array

Add bounds check for ch[] array.
Use ARRAY_SIZE() to ensure that idx is within the range.

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_virtchnl_pf.c