]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp_mst: Fix memory leak in drm_dp_mst_topology_mgr_destroy()
authorLyude Paul <lyude@redhat.com>
Tue, 11 Dec 2018 23:50:26 +0000 (18:50 -0500)
committerLyude Paul <lyude@redhat.com>
Thu, 13 Dec 2018 22:40:49 +0000 (17:40 -0500)
commit93af2e30b4a4e9c57b664ed81dc6193dd6b7bdd2
tree554a20602e68d0c608a6a34fd83c566e4915835c
parent02708b9ad8668ec8daba4ff620d0188de93b4460
drm/dp_mst: Fix memory leak in drm_dp_mst_topology_mgr_destroy()

We need to call drm_dp_mst_topology_mgr_set_mst(mgr, false) when
destroying the topology manager in order to ensure that the root mstb
and all of it's descendents are actually destroyed, and additionally to
try to make sure that we leave the hub in a clean state.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181211235026.21758-1-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c