diff options
| author | Su Hui <[email protected]> | 2024-06-05 03:47:43 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-06-06 11:34:33 +0000 |
| commit | 0dcc53abf58d572d34c5313de85f607cd33fc691 (patch) | |
| tree | fccc039dfb5a35dbdf38fed559628a85187126aa /net/unix/af_unix.c | |
| parent | ipv6: fix possible race in __fib6_drop_pcpu_from() (diff) | |
| download | kernel-0dcc53abf58d572d34c5313de85f607cd33fc691.tar.gz kernel-0dcc53abf58d572d34c5313de85f607cd33fc691.zip | |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
