]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:34 +0000 (15:09 +0100)
commit32c3a2f6f3c136fd5302375ae4d450aff9cae9a3
tree1fd7647a12b1c5e476864f28696e65151f264488
parent725d7f7a4e391c8d5c365301cb6e378bad859428
net/mlx4_core: Add missed mlx4_free_cmd_mailbox()

[ Upstream commit 8eb65fda4a6dbd59cd5de24b106a10b6ee0d2176 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c