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

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


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

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

Thread overview: 4+ 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 22:06 ` Daniel Vetter
2019-01-11 22:16   ` Daniel Vetter
2019-01-14  7:38     ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).