[Intel-wired-lan] [next PATCH S5 04/10] i40e: Add bounds check for ch[] array

Bowers, AndrewX andrewx.bowers at intel.com
Fri May 3 23:37:14 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Wednesday, April 24, 2019 5:21 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Cc: Kwapulinski, Piotr <piotr.kwapulinski at intel.com>
> Subject: [Intel-wired-lan] [next PATCH S5 04/10] i40e: Add bounds check for
> ch[] array
> 
> From: Piotr Kwapulinski <piotr.kwapulinski at intel.com>
> 
> Add bounds check for ch[] array.
> Use ARRAY_SIZE() to ensure that idx is within the range.
> 
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list