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)
commitb27223591606f59c1f7c042b8e3dc74affadf492
tree38a69dd7156390ebd32b02b0725fe47c993ed878
parentb603f9dc20afed5e4666642c8713cafb94a23058
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