aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSu Hui <[email protected]>2024-06-05 11:47:43 +0800
committerPaolo Abeni <[email protected]>2024-06-06 13:34:33 +0200
commit0dcc53abf58d572d34c5313de85f607cd33fc691 (patch)
treefccc039dfb5a35dbdf38fed559628a85187126aa /scripts/generate_rust_analyzer.py
parentb01e1c030770ff3b4fe37fc7cc6bca03f594133f (diff)
net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
Clang static checker (scan-build) warning: net/ethtool/ioctl.c:line 2233, column 2 Called function pointer is null (null dereference). Return '-EOPNOTSUPP' when 'ops->get_ethtool_phy_stats' is NULL to fix this typo error. Fixes: 201ed315f967 ("net/ethtool/ioctl: split ethtool_get_phy_stats into multiple helpers") Signed-off-by: Su Hui <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Reviewed-by: Hariprasad Kelam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions