]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix wrong return value on ioctl EEPROM query failure
authorGal Pressman <gal@nvidia.com>
Mon, 6 Jun 2022 11:57:18 +0000 (14:57 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jun 2022 03:49:58 +0000 (20:49 -0700)
commit481502f0886ab3a75e9d98149a6158f475525d10
treeb049998ea033db968da57022b70e9c798601bddb
parenta391bd1fb481f81e25a80b8d9cfe72f6012e4b4a
net/mlx4_en: 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: 98c67e413c7e ("ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20220606115718.14233-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c