]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: verify string count matches even on early return
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 2 Jul 2019 12:22:58 +0000 (08:22 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 5 Aug 2019 18:42:05 +0000 (11:42 -0700)
commitc261fdbfd763c59b523985124229e2bccfc0a214
tree38a69dd7156390ebd32b02b0725fe47c993ed878
parent9813686b0c6ac1bca03b8d181cb87d38b4f0cc64
i40e: verify string count matches even on early return

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@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_ethtool.c