net/mlx5e: Initialize on stack link modes bitmap
authorAya Levin <ayal@mellanox.com>
Wed, 23 Oct 2019 09:57:54 +0000 (12:57 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:20 +0000 (16:27 -0700)
commit926b37f76fb0a22fe93c8873c819fd167180e85c
tree997b40ef92c8df523c41a9d7176c87e040160050
parent534e7366f41b0c689b01af4375aefcd1462adedf
net/mlx5e: Initialize on stack link modes bitmap

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