Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i40e: fix condition of WARN_ONCE for stat strings
Commit 9b10df5 ("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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Tested-by: Mauro S M Rodrigues <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
- Loading branch information