summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-03-25 09:05:10 +0000
committerDave Airlie <airlied@linux.ie>2005-03-25 09:05:10 +0000
commitca04fbc7bad746b5f323a36407b4d99a3a2afd02 (patch)
treef91f4f9e16fbb7ca2a1490b63310fcd2888b585c /linux-core
parentc8d2d5d41901ba8072b4f03617c39cbb52f9224b (diff)
fix bug with XFree86 4.3 on core drm
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 884cc3fa..4a8c3a10 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -143,6 +143,12 @@ int drm_takedown(drm_device_t * dev)
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);