ChangeSet 1.2199.17.2, 2005/03/24 17:40:57+11:00, [EMAIL PROTECTED](none)

        drm: issue with unique for XFree86 4.3 backwards compatibility
        
        This got broken at some stage not sure when exactly... but it caused 
        XFree86 4.3 issues and I had to install sarge...
        
        Signed-off-by: Dave Airlie <[EMAIL PROTECTED]>



 drm_drv.c |    6 ++++++
 1 files changed, 6 insertions(+)


diff -Nru a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c
--- a/drivers/char/drm/drm_drv.c        2005-03-27 12:04:19 -08:00
+++ b/drivers/char/drm/drm_drv.c        2005-03-27 12:04:19 -08: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 );
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to