]> git.hungrycats.org Git - linux/commit
net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path
authorJiri Pirko <jiri@nvidia.com>
Tue, 18 Oct 2022 10:51:52 +0000 (12:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:35 +0000 (12:00 +0100)
commit5a75e8c05f84a10d9ad01aedb5c76980831852f3
treeee3f7cad95597a64fe818dd66b51e514a77e9f5d
parent7cce0c9c90b8ad94e19e591e4c9789b38878a9a2
net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path

[ Upstream commit 2a35b2c2e6a252eda2134aae6a756861d9299531 ]

There are two cleanup calls missing in mlx5_init_once() error path.
Add them making the error path flow to be the same as
mlx5_cleanup_once().

Fixes: 52ec462eca9b ("net/mlx5: Add reserved-gids support")
Fixes: 7c39afb394c7 ("net/mlx5: PTP code migration to driver core section")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c