net/mlx4_core: Add missed mlx4_free_cmd_mailbox()
authorChuhong Yuan <hslester96@gmail.com>
Sun, 21 Feb 2021 14:35:59 +0000 (22:35 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 03:08:33 +0000 (19:08 -0800)
commit8eb65fda4a6dbd59cd5de24b106a10b6ee0d2176
tree51513b032a1ade0232223b264de2a31fd7a3a2fe
parent24877687b375f2c476ffb726ea915fc85df09e3d
net/mlx4_core: Add missed mlx4_free_cmd_mailbox()

mlx4_do_mirror_rule() forgets to call mlx4_free_cmd_mailbox() to
free the memory region allocated by mlx4_alloc_cmd_mailbox() before
an exit.
Add the missed call to fix it.

Fixes: 78efed275117 ("net/mlx4_core: Support mirroring VF DMFS rules on both ports")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20210221143559.390277-1-hslester96@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c