]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 12 Aug 2015 18:50:50 +0000 (11:50 -0700)
commitf20aae9e78856c5834f1b36ed88ae68c4d473d37
tree3c85427e006223b4f0dd74c3866df3e5c5a15d74
parentaae3e8f047d8f58f348a0dc5ab0c46a2c68a342c
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>
(cherry picked from commit ed3d2276ef72be23c6367358d80004130d8c797d)

Orabug: 21606315

Acked-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
drivers/net/ethernet/mellanox/mlx4/main.c