summaryrefslogtreecommitdiff
path: root/net/devres.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2022-06-16 19:08:55 +0300
committerJakub Kicinski <kuba@kernel.org>2022-06-18 06:22:16 +0300
commita3bb7b63813f674fb62bac321cdd897cc62de094 (patch)
tree14fe470a9a85ec10e61732fd374e9fb418217d5f /net/devres.c
parent7a9214f3d88cfdb099f3896e102a306b316d8707 (diff)
downloadlinux-a3bb7b63813f674fb62bac321cdd897cc62de094.tar.xz
ethtool: Fix get module eeprom fallback
Function fallback_set_params() checks if the module type returned by a driver is ETH_MODULE_SFF_8079 and in this case it assumes that buffer returns a concatenated content of page A0h and A2h. The check is wrong because the correct type is ETH_MODULE_SFF_8472. Fixes: 96d971e307cc ("ethtool: Add fallback to get_module_eeprom from netlink command") Signed-off-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/20220616160856.3623273-1-ivecera@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devres.c')
0 files changed, 0 insertions, 0 deletions