]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Don't skip subfunction cleanup in case of error in module init
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 2 Aug 2021 13:39:54 +0000 (16:39 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:56:31 +0000 (20:56 -0700)
commit66030b0d7e25dd3fdabeedf74edefa87cbdad37d
tree3c39caadd66f319fb0b46e3676f807ef004f9351
parentf0d6739c37b3578c99d7232627030ad5d5aa9da2
net/mlx5: Don't skip subfunction cleanup in case of error in module init

Clean SF resources if mlx5 eth failed to initialize.

Fixes: 754de2d709c7 ("net/mlx5: SF, Add auxiliary device driver")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h