drm/nouveau/kms: Fix memory leak in nv50_mstm_del()
authorLyude Paul <lyude@redhat.com>
Tue, 11 Dec 2018 23:56:20 +0000 (18:56 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Dec 2018 07:00:26 +0000 (17:00 +1000)
commit24199c5436f267399afed0c4f1f57663c0408f57
treef4811083920d7453c39f9f192023400c8dc1956d
parent970a5ee41c72df46e3b0f307528c7d8ef7734a2e
drm/nouveau/kms: Fix memory leak in nv50_mstm_del()

Noticed this while working on redoing the reference counting scheme in
the DP MST helpers. Nouveau doesn't attempt to call
drm_dp_mst_topology_mgr_destroy() at all, which leaves it leaking all of
the resources for drm_dp_mst_topology_mgr and it's children mstbs+ports.

Fixes: f479c0ba4a17 ("drm/nouveau/kms/nv50: initial support for DP 1.2 multi-stream")
Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: <stable@vger.kernel.org> # v4.10+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c