linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* patch: fix DRM on XFree86 4.3/Debian
@ 2005-04-28 10:57 Dave Airlie
  0 siblings, 0 replies; only message in thread
From: Dave Airlie @ 2005-04-28 10:57 UTC (permalink / raw)
  To: stable; +Cc: linux-kernel


Hi,
	This patch fixes an issue with XFree86 4.3 not starting properly
on Debian sarge with a 2.6.11 kernel and I think it should be in stable,
it has been in DRM CVS and in 2.6.12-rc2 for a while now...

Signed-off-by: Dave Airlie <airlied@linux.ie>

diff -Naru a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c
--- a/drivers/char/drm/drm_drv.c	2005-04-28 03:56:32 -07:00
+++ b/drivers/char/drm/drm_drv.c	2005-04-28 03:56:32 -07:00
@@ -144,6 +144,12 @@
 	if (dev->driver->pretakedown)
 	  dev->driver->pretakedown(dev);

+	if (dev->unique) {
+		drm_free(dev->unique, strlen(dev->unique) + 1, DRM_MEM_DRIVER);
+		dev->unique = NULL;
+		dev->unique_len = 0;
+	}
+
 	if ( dev->irq_enabled ) drm_irq_uninstall( dev );

 	down( &dev->struct_sem );

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-28 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 10:57 patch: fix DRM on XFree86 4.3/Debian Dave Airlie

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).