net/mlx4_en: Fix wrong return value on ioctl EEPROM query failure
Subsystems (4)
Tariq Toukan
maintainerPATCH 1/1 net/mlx4_en: Fix wrong return value on ioctl EEPROM query failure
From: Gal Pressman <[email protected]>
The ioctl EEPROM query wrongly returns success on read failures, fix that by returning the appropriate error code.
Fixes 7202da8b7f71 ("ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support")
Signed-off-by Gal Pressman <[email protected]>
Signed-off-by Tariq Toukan <[email protected]>
--- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +1 -1
@@ -2110,7 +2110,7 @@ static int mlx4_en_get_module_eeprom(struct net_device *dev,en_err (priv,"mlx4_get_module_info i(%d) offset(%d) bytes_to_read(%d) - FAILED (0x%x)\n" , i, offset, ee->len - i, ret); -return 0 ; +return ret; } i += ret;
Signature · 1 line
2.21.0
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Mon, 6 Jun 2022 14:57:18 +0300 you wrote:
From: Gal Pressman <[email protected]>
The ioctl EEPROM query wrongly returns success on read failures, fix that by returning the appropriate error code.
Fixes 7202da8b7f71 ("ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support")Signed-off-by Gal Pressman <[email protected]>Signed-off-by Tariq Toukan <[email protected]>[...]
Here is the summary with links:
- [net] net/mlx4_en: Fix wrong return value on ioctl EEPROM query failure
https://git.kernel.org/netdev/net/c/f5826c8c9d57
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html