diff options
author | David S. Miller <davem@davemloft.net> | 2022-12-28 14:55:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-28 14:55:24 +0300 |
commit | e71460d4468fbd923b07056d7d18fd85f29c6ae2 (patch) | |
tree | 25f293f22789dad4be3fee157e22c4831b28dd54 /tools/perf/scripts/python/stackcollapse.py | |
parent | 8ac718cc0e36ef4046e2d6349727fecddc13ab9c (diff) | |
parent | 201ed315f9676809cd5b20a39206e964106d4f27 (diff) | |
download | linux-e71460d4468fbd923b07056d7d18fd85f29c6ae2.tar.xz |
Merge branch 'ethtool_gert_phy_stats-fixes'
Daniil Tatianin says:
====================
net/ethtool/ioctl: split ethtool_get_phy_stats into multiple helpers
This series fixes a potential NULL dereference in ethtool_get_phy_stats
while also attempting to refactor/split said function into multiple
helpers so that it's easier to reason about what's going on.
I've taken Andrew Lunn's suggestions on the previous version of this
patch and added a bit of my own.
Changes since v1:
- Remove an extra newline in the first patch
- Move WARN_ON_ONCE into the if check as it already returns the
result of the comparison
- Actually split ethtool_get_phy_stats instead of attempting to
refactor it
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions