]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Unlock on error in mlx5_sriov_enable()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2022 14:39:31 +0000 (17:39 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Aug 2022 19:57:10 +0000 (12:57 -0700)
commitbebc70122b3b3092522318ad6d7931f232ef4ef8
tree122705a05e07c082cb96e2552ca5074ddc55b932
parent6cc0e0db427e6b0134e39574be57298bb52a3560
net/mlx5: Unlock on error in mlx5_sriov_enable()

Unlock before returning if mlx5_device_enable_sriov() fails.

Fixes: 9c47dc56b543 ("net/mlx5: Lock mlx5 devlink reload callbacks")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sriov.c