All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/cirrus: fix connector leak at unload
@ 2019-01-11 14:02 ` Rob Clark
  0 siblings, 0 replies; 11+ messages in thread
From: Rob Clark @ 2019-01-11 14:02 UTC (permalink / raw)
  To: dri-devel
  Cc: Rob Clark, Daniel Stone, David Airlie, YueHaibing, linux-kernel,
	virtualization, Gerd Hoffmann, Thomas Zimmermann, Dave Airlie,
	Thierry Reding

This fixes an '*ERROR* connector VGA-2 leaked!' splat at driver unload.

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
Similar case to the issue that was fixed recently in drm/ast

 drivers/gpu/drm/cirrus/cirrus_fbdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
index 4dd499c7d1ba..bb379ec4c182 100644
--- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c
+++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
@@ -256,6 +256,8 @@ static int cirrus_fbdev_destroy(struct drm_device *dev,
 {
 	struct drm_framebuffer *gfb = gfbdev->gfb;
 
+	drm_crtc_force_disable_all(dev);
+
 	drm_fb_helper_unregister_fbi(&gfbdev->helper);
 
 	vfree(gfbdev->sysram);
-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-01-14  7:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11 14:02 [PATCH] drm/cirrus: fix connector leak at unload Rob Clark
2019-01-11 14:02 ` Rob Clark
2019-01-11 22:06 ` Daniel Vetter
2019-01-11 22:06 ` Daniel Vetter
2019-01-11 22:06   ` Daniel Vetter
2019-01-11 22:16   ` Daniel Vetter
2019-01-11 22:16   ` Daniel Vetter
2019-01-11 22:16     ` Daniel Vetter
2019-01-14  7:38     ` Gerd Hoffmann
2019-01-14  7:38       ` Gerd Hoffmann
2019-01-14  7:38     ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.