fix bug with XFree86 4.3 on core drm

Signed-off-by: Dave Airlie <airlied@linux.ie>
main
Dave Airlie 2005-03-25 09:05:10 +00:00
parent c8d2d5d419
commit ca04fbc7ba
1 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,12 @@ int drm_takedown(drm_device_t * dev)
if (dev->driver->pretakedown) if (dev->driver->pretakedown)
dev->driver->pretakedown(dev); 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) if (dev->irq_enabled)
drm_irq_uninstall(dev); drm_irq_uninstall(dev);