summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-02-21 15:31:48 -0500
committerKristian Høgsberg <krh@redhat.com>2008-02-21 15:31:48 -0500
commit32c67922b722e375268789600cd89b80749e7a71 (patch)
tree35e81030311fae24ff26e21d383135cdcd62c7ec
parent374b41e5bcdb5c22471c8c16dd794ac54c4f76d2 (diff)
Don't free irq resources until after we've unregistered the handler.
-rw-r--r--linux-core/drm_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c
index 1a035657..592ea2ad 100644
--- a/linux-core/drm_irq.c
+++ b/linux-core/drm_irq.c
@@ -273,10 +273,10 @@ int drm_irq_uninstall(struct drm_device * dev)
dev->driver->irq_uninstall(dev);
- drm_vblank_cleanup(dev);
-
free_irq(dev->irq, dev);
+ drm_vblank_cleanup(dev);
+
dev->locked_tasklet_func = NULL;
return 0;