]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55b278ec5a586a7e764b52d6c5f53cf1a7c84071
tree51513b032a1ade0232223b264de2a31fd7a3a2fe
parentc5be83edd9a7d365e3b622bf0e011d4358abf0f0
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: b64d4ffbeed8 ("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