Su Hui
6548d543a2
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>
2024-06-21 14:38:20 +02:00
..
2023-10-19 09:27:12 -07:00
2020-03-12 15:32:32 -07:00
2022-07-25 19:38:31 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-02 19:11:06 -07:00
2023-01-23 12:44:18 +00:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2024-01-25 15:36:00 -08:00
2023-08-15 15:01:03 -07:00
2024-06-21 14:38:20 +02:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-01-23 12:44:18 +00:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-12-08 08:52:23 +01:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-10-03 07:18:58 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:01:03 -07:00
2023-08-15 15:00:45 -07:00
2023-08-15 15:01:03 -07:00