diff options
author | Lyude Paul <lyude@redhat.com> | 2019-09-03 22:45:52 +0200 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2019-09-25 22:27:53 +0200 |
commit | 50094b5dcd3238c0cf91a5768d0316adaeb32e45 (patch) | |
tree | ab0ecdb0fc1ed8c2b3504451c7c27f048db0b136 /drivers/gpu/drm/drm_dp_mst_topology.c | |
parent | drm/bridge/synopsys: dsi: Use devm_platform_ioremap_resource() in __dw_mipi_d... (diff) | |
download | linux-50094b5dcd3238c0cf91a5768d0316adaeb32e45.tar.xz linux-50094b5dcd3238c0cf91a5768d0316adaeb32e45.zip |
drm/dp_mst: Destroy topology_mgr mutexes
Turns out we've been forgetting for a while now to actually destroy any
of the mutexes that we create in drm_dp_mst_topology_mgr. So, let's do
that.
Cc: Juston Li <juston.li@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903204645.25487-15-lyude@redhat.com
Diffstat (limited to 'drivers/gpu/drm/drm_dp_mst_topology.c')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 97216099a718..624adb0fc4b2 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -4297,6 +4297,11 @@ void drm_dp_mst_topology_mgr_destroy(struct drm_dp_mst_topology_mgr *mgr) mgr->aux = NULL; drm_atomic_private_obj_fini(&mgr->base); mgr->funcs = NULL; + + mutex_destroy(&mgr->delayed_destroy_lock); + mutex_destroy(&mgr->payload_lock); + mutex_destroy(&mgr->qlock); + mutex_destroy(&mgr->lock); } EXPORT_SYMBOL(drm_dp_mst_topology_mgr_destroy); |