]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5e: Remove overzealous validations in netlink EEPROM query
authorGal Pressman <gal@nvidia.com>
Wed, 26 Jan 2022 14:28:23 +0000 (16:28 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:19 +0000 (11:59 +0200)
commitf08497ace56cff345f99c1576df21479e05cee28
tree4d13994e67ca6edfea141f4e5f7de6ec224e67e8
parent331f114621b06be4212e1c0276fc9ad9bc4ec320
net/mlx5e: Remove overzealous validations in netlink EEPROM query

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 970adfb76095fa719778d70a6b86030d2feb88dd ]

Unlike the legacy EEPROM callbacks, when using the netlink EEPROM query
(get_module_eeprom_by_page) the driver should not try to validate the
query parameters, but just perform the read requested by the userspace.

Recent discussion in the mailing list:
https://lore.kernel.org/netdev/20220120093051.70845141@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net/

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 459e56859f7a67d5df5f9e38cf814a65368b2bf8)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/port.c