net/mlx4_core: Fix memory leak while delete slave's resources
authorMoshe Shemesh <moshe@mellanox.com>
Tue, 27 Mar 2018 11:41:19 +0000 (14:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:32:27 +0000 (12:32 +0200)
commitfdae5b620566be0637b4b11df0e54c247df094f8
treedc5ddc8fa554a371fb6bf0660a10f326b86e992c
parent9fdeb33e1913f4d1d2f8cdb9f78565452cbebcfb
net/mlx4_core: Fix memory leak while delete slave's resources

[ Upstream commit 461d5f1b59490ce0096dfda45e10038c122a7892 ]

mlx4_delete_all_resources_for_slave in resource tracker should free all
memory allocated for a slave.
While releasing memory of fs_rule, it misses releasing memory of
fs_rule->mirr_mbox.

Fixes: 78efed275117 ('net/mlx4_core: Support mirroring VF DMFS rules on both ports')
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c