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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:13:06 +0000 (14:13 +0100)
commitd0a954cbfbd09c9106192f880dbe52bf448f11a8
tree5e526ffeec45070b3c163e5cd583ba8c7f574b25
parente89aa818353bccf626c317f0dee0d1cd7cdc6772
drm/nouveau/kms: Fix memory leak in nv50_mstm_del()

commit 24199c5436f267399afed0c4f1f57663c0408f57 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nv50_display.c