]> git.baikalelectronics.ru Git - 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)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:20 +0000 (16:27 -0700)
commit993b2abf6fcaf3241236ae03cf63776b53eeaadc
tree997b40ef92c8df523c41a9d7176c87e040160050
parent036193afcc4e228f3523973a29a4d309740ebe62
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: 8ea6c2029ea7 ("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