diff options
| author | Benjamin Poirier <[email protected]> | 2017-05-17 16:24:13 -0400 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-06-06 01:05:13 -0700 |
| commit | 24ad2a9209a0bf1ec37fac25a011c98551865abb (patch) | |
| tree | 276930cbdf2187fbfb9779871c3ac6b651d66fe3 /tools/perf/scripts/python | |
| parent | 81e3f64a9b2d837717a58606d9f22420a47fdf68 (diff) | |
e1000e: Don't return uninitialized stats
Some statistics passed to ethtool are garbage because e1000e_get_stats64()
doesn't write them, for example: tx_heartbeat_errors. This leaks kernel
memory to userspace and confuses users.
Do like ixgbe and use dev_get_stats() which first zeroes out
rtnl_link_stats64.
Fixes: 5944701df90d ("net: remove useless memset's in drivers get_stats64")
Reported-by: Stefan Priebe <[email protected]>
Signed-off-by: Benjamin Poirier <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions