diff options
author | Carol Soto <clsoto@linux.vnet.ibm.com> | 2015-06-02 16:07:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-03 20:12:58 -0700 |
commit | ed3d2276ef72be23c6367358d80004130d8c797d (patch) | |
tree | 42dd244606453b0c396050e9d81660a4318e9c4f /drivers/net/ethernet | |
parent | 5114a04e6c73a0c6e74737e801b8a3b3d40c7e36 (diff) | |
download | linux-ed3d2276ef72be23c6367358d80004130d8c797d.tar.bz2 |
net/mlx4_core: need to call close fw if alloc icm is called twice
If mlx4_enable_sriov is called by adapter without this
feature MLX4_DEV_CAP_FLAG2_SYS_EQS then during this path the function alloc
icm is called twice without freeing the structures from the first time.
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 9485cbef5166..7d57777e65c5 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c @@ -2976,6 +2976,7 @@ slave_start: existing_vfs, reset_flow); + mlx4_close_fw(dev); mlx4_cmd_cleanup(dev, MLX4_CMD_CLEANUP_ALL); dev->flags = dev_flags; if (!SRIOV_VALID_STATE(dev->flags)) { |