]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/mlx5e: Initialize on stack link modes bitmap
authorAya Levin <ayal@mellanox.com>
Wed, 23 Oct 2019 09:57:54 +0000 (12:57 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:41 +0000 (18:47 +0100)
commit5e0e05bea64789226f2d81f15f24e3c8ff133eb3
tree61c5ae05ff30f304c78a6cfad52467efb04c54d4
parent4a21bcaed35b0e1f09015c09694ebbbe4bb40dc5
net/mlx5e: Initialize on stack link modes bitmap

BugLink: https://bugs.launchpad.net/bugs/1852111
[ Upstream commit 926b37f76fb0a22fe93c8873c819fd167180e85c ]

Initialize link modes bitmap on stack before using it, otherwise the
outcome of ethtool set link ksettings might have unexpected values.

Fixes: 4b95840a6ced ("net/mlx5e: Fix matching of speed to PRM link modes")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c