linux/drivers/net/ethernet/intel
Jacob Keller 07f3701387 i40e: fix condition of WARN_ONCE for stat strings
Commit 9b10df596b ("i40e: use WARN_ONCE to replace the commented
BUG_ON size check") introduced a warning check to make sure
that the size of the stat strings was always the expected value. This
code accidentally inverted the check of the data pointer. Fix this so
that we accurately count the size of the stats we copied in.

This fixes an erroneous WARN kernel splat that occurs when requesting
ethtool statistics.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Tested-by: Mauro S M Rodrigues <maurosr@linux.vnet.ibm.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-08-24 08:52:35 -07:00
..
e1000 e1000: ensure to free old tx/rx rings in set_ringparam() 2018-08-24 08:52:35 -07:00
e1000e treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fm10k treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
i40e i40e: fix condition of WARN_ONCE for stat strings 2018-08-24 08:52:35 -07:00
i40evf i40e: Add AQ command for rearrange NVM structure 2018-08-07 12:20:45 -07:00
ice ice: Trivial formatting fixes 2018-08-23 11:34:26 -07:00
igb igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback() 2018-08-24 08:52:35 -07:00
igbvf igbvf: netdev: Mark expected switch fall-through 2018-08-07 17:54:20 -07:00
ixgb ixgb: use dma_zalloc_coherent instead of allocator/memset 2018-08-24 08:52:35 -07:00
ixgbe ixgbe: fix driver behaviour after issuing VFLR 2018-08-24 08:52:35 -07:00
ixgbevf xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
Kconfig docs: Fix more broken references 2018-06-15 18:11:26 -03:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00
e100.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00