Commit 86c70017 authored by Jiri Pirko's avatar Jiri Pirko Committed by zhaoxiaoqiang11
Browse files

net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path

stable inclusion
from stable-v5.10.163
commit 66b92b80c95ebd0fc080395d376b5f283bfc2266
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=66b92b80c95ebd0fc080395d376b5f283bfc2266



----------------------------------------------------

[ Upstream commit 2a35b2c2 ]

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: 52ec462e ("net/mlx5: Add reserved-gids support")
Fixes: 7c39afb3 ("net/mlx5: PTP code migration to driver core section")
Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent a50e8bfe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment