[Intel-wired-lan] [next PATCH S7 8/9] i40e: verify string count matches even on early return

Bowers, AndrewX andrewx.bowers at intel.com
Wed Jul 3 21:42:45 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Tuesday, July 2, 2019 5:23 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S7 8/9] i40e: verify string count
> matches even on early return
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> Similar to i40e_get_ethtool_stats, add a goto to verify that the data pointer
> for the strings lines up with the expected stats count. This helps ensure that
> bugs are not introduced when adding stats.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

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




More information about the Intel-wired-lan mailing list