]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix wrong return value on ioctl EEPROM query failure
authorGal Pressman <gal@nvidia.com>
Wed, 2 Feb 2022 14:07:21 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:38:13 +0000 (11:38 +0100)
commit0921d16eb7daadcba871889003fac494f6efc0f5
tree0214637f636e4a0c4173def72478608ae39f8ac3
parent4b3a023a13612ece64a3975cb202663a3ccc7022
net/mlx5e: Fix wrong return value on ioctl EEPROM query failure

commit 0b89429722353d112f8b8b29ca397e95fa994d27 upstream.

The ioctl EEPROM query wrongly returns success on read failures, fix
that by returning the appropriate error code.

Fixes: bb64143eee8c ("net/mlx5e: Add ethtool support for dump module EEPROM")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c