Blame SOURCES/0265-netdrv-net-mlx5-E-switch-Annotate-esw-state_lock-mut.patch

d8f823
From 7ebf81988e7d25faf70f748a840ddba1d38c651b Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Tue, 19 May 2020 07:49:28 -0400
d8f823
Subject: [PATCH 265/312] [netdrv] net/mlx5: E-switch, Annotate esw state_lock
d8f823
 mutex destroy
d8f823
d8f823
Message-id: <20200519074934.6303-58-ahleihel@redhat.com>
d8f823
Patchwork-id: 310557
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1663246 57/63] net/mlx5: E-switch, Annotate esw state_lock mutex destroy
d8f823
Bugzilla: 1835595 1663246
d8f823
RH-Acked-by: Marcelo Leitner <mleitner@redhat.com>
d8f823
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
d8f823
RH-Acked-by: John Linville <linville@redhat.com>
d8f823
RH-Acked-by: Ivan Vecera <ivecera@redhat.com>
d8f823
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
d8f823
RH-Acked-by: Kamal Heib <kheib@redhat.com>
d8f823
d8f823
Bugzilla: http://bugzilla.redhat.com/1835595
d8f823
Bugzilla: http://bugzilla.redhat.com/1663246
d8f823
Upstream: v5.7-rc1
d8f823
d8f823
commit d6c8022dfb06b27c96d6deca93ce6d762e842878
d8f823
Author: Parav Pandit <parav@mellanox.com>
d8f823
Date:   Tue Dec 17 22:51:24 2019 -0600
d8f823
d8f823
    net/mlx5: E-switch, Annotate esw state_lock mutex destroy
d8f823
d8f823
    Invoke mutex_destroy() to catch any esw state_lock errors.
d8f823
d8f823
    Reviewed-by: Roi Dayan <roid@mellanox.com>
d8f823
    Reviewed-by: Bodong Wang <bodong@mellanox.com>
d8f823
    Signed-off-by: Parav Pandit <parav@mellanox.com>
d8f823
    Reviewed-by: Mark Bloch <markb@mellanox.com>
d8f823
    Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
d8f823
d8f823
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
d8f823
---
d8f823
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 1 +
d8f823
 1 file changed, 1 insertion(+)
d8f823
d8f823
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
d8f823
index 6ae084b0e612..901466fa1041 100644
d8f823
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
d8f823
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
d8f823
@@ -2198,6 +2198,7 @@ void mlx5_eswitch_cleanup(struct mlx5_eswitch *esw)
d8f823
 	esw->dev->priv.eswitch = NULL;
d8f823
 	destroy_workqueue(esw->work_queue);
d8f823
 	esw_offloads_cleanup_reps(esw);
d8f823
+	mutex_destroy(&esw->state_lock);
d8f823
 	mutex_destroy(&esw->offloads.mod_hdr.lock);
d8f823
 	mutex_destroy(&esw->offloads.encap_tbl_lock);
d8f823
 	kfree(esw->vports);
d8f823
-- 
d8f823
2.13.6
d8f823