From: Max Gurtovoy Date: Wed, 27 Feb 2019 14:10:16 +0000 (+0200) Subject: net/mlx5: E-Switch, Fix double mutex initialization X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~2966^2~216^2~13 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=eda99e11a097fba938880f1304f1d937d2b49f3a;p=mirror_ubuntu-focal-kernel.git net/mlx5: E-Switch, Fix double mutex initialization Delete mutex_init call of a lock that's initialized in inner function. Fixes: eca8cc389535 ("net/mlx5: E-Switch, Refactor offloads flow steering init/cleanup") Signed-off-by: Max Gurtovoy Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c index 6c72f33f6d09..d684048551bd 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -1697,8 +1697,6 @@ int esw_offloads_init(struct mlx5_eswitch *esw, int vf_nvports, { int err; - mutex_init(&esw->fdb_table.offloads.fdb_prio_lock); - err = esw_offloads_steering_init(esw, total_nvports); if (err) return err;