mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path
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:52ec462eca("net/mlx5: Add reserved-gids support") Fixes:7c39afb394("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>
This commit is contained in:
parent
1f0ae22ab4
commit
2a35b2c2e6
|
|
@ -1050,6 +1050,8 @@ static int mlx5_init_once(struct mlx5_core_dev *dev)
|
|||
err_tables_cleanup:
|
||||
mlx5_geneve_destroy(dev->geneve);
|
||||
mlx5_vxlan_destroy(dev->vxlan);
|
||||
mlx5_cleanup_clock(dev);
|
||||
mlx5_cleanup_reserved_gids(dev);
|
||||
mlx5_cq_debugfs_cleanup(dev);
|
||||
mlx5_fw_reset_cleanup(dev);
|
||||
err_events_cleanup:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user