diff options
author | Su Hui <suhui@nfschina.com> | 2024-06-05 06:47:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-21 15:38:20 +0300 |
commit | 6548d543a27449a1a3d8079925de93f5764d6f22 (patch) | |
tree | 9358c1587141f2c66b14677968ceeadfdc5a47c1 /sound/aoa/codecs/onyx.h | |
parent | 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef (diff) | |
download | linux-6548d543a27449a1a3d8079925de93f5764d6f22.tar.xz |
net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
[ Upstream commit 0dcc53abf58d572d34c5313de85f607cd33fc691 ]
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 <suhui@nfschina.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://lore.kernel.org/r/20240605034742.921751-1-suhui@nfschina.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/aoa/codecs/onyx.h')
0 files changed, 0 insertions, 0 deletions