]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: Fix resource tracker memory leak after Reset Flow
authorHadar Hen Zion <hadarh@mellanox.com>
Tue, 11 Mar 2014 15:44:51 +0000 (17:44 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:19 +0000 (14:45 -0700)
commit2c7dd71738c79e0e7dbd6fe230aa85ac11356be2
treec2fbafe7aaf7450dc6c39d0bf1e9b55e7a479ad8
parent78f676f4c9fc7e850376bb8a820f1cbfa99242d3
mlx4_core: Fix resource tracker memory leak after Reset Flow

In case of non-responsive device mlx4_ACCESS_MEM fails and the
driver can't read qp_detach mailbox, which includes all the
rule information.

Since the driver doesn't get the rules attributes form the
qp_detach mailbox the master fails to detach his rules form
the resource tracker during driver unload sequence when the
device in in internal_error state.

Calling rem_slave_qp will remove those rules and the qps they are
attached to unconditionally.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c