]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitd94b6d4d4319d43b782a29be27cc4797d500b88e
tree7c87a07bcbe2c1f0935454af9326c2ca03b5bbfd
parent2b1b7e0c07ce72cc8a47268ea681b90bb7fc492b
drm/nouveau/kms: Fix memory leak in nv50_mstm_del()

BugLink: https://bugs.launchpad.net/bugs/1837257
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/nouveau/nv50_display.c