]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:15 +0000 (16:08 -0800)
commit0b89429722353d112f8b8b29ca397e95fa994d27
tree5f94cce0b13178a773e1a27d9f7e8a36f8915e7c
parentb645e57debca846f51b3209907546ea857ddd3f5
net/mlx5e: Fix wrong return value on ioctl EEPROM query failure

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>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c