fix bug with XFree86 4.3 on core drm
Signed-off-by: Dave Airlie <airlied@linux.ie>main
parent
c8d2d5d419
commit
ca04fbc7ba
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue