net/mlx4_core: need to call close fw if alloc icm is called twice
authorCarol Soto <clsoto@linux.vnet.ibm.com>
Tue, 2 Jun 2015 21:07:24 +0000 (16:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 03:12:58 +0000 (20:12 -0700)
commited3d2276ef72be23c6367358d80004130d8c797d
tree42dd244606453b0c396050e9d81660a4318e9c4f
parent5114a04e6c73a0c6e74737e801b8a3b3d40c7e36
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>
drivers/net/ethernet/mellanox/mlx4/main.c