net/mlx5: unlock on error path in esw_vfs_changed_event_handler()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Jul 2022 08:27:03 +0000 (11:27 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Aug 2022 19:57:09 +0000 (12:57 -0700)
commitb868c8fe37bd15def1a8dd0b1f30fca9087e499a
tree2ef391e0bfe855a0f5337f501ce666d8ef3d12dc
parent550f96432e6f6770efdaee0e65239d61431062a1
net/mlx5: unlock on error path in esw_vfs_changed_event_handler()

Unlock before returning on this error path.

Fixes: f1bc646c9a06 ("net/mlx5: Use devl_ API in mlx5_esw_offloads_devlink_port_register")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c