drm/radeon/kms: Don't try to process irq when we are unloading
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Sep 2009 20:23:07 +0000 (22:23 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Sep 2009 08:41:01 +0000 (18:41 +1000)
If module is being unloaded we should not try to handle irq especialy
we should not call into drm helper or we could hard hang the computer
free_irq will call the irq handler to make sure we behave properly.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c

index 4e1c551..4dd5ca5 100644 (file)
@@ -319,6 +319,9 @@ int r100_irq_process(struct radeon_device *rdev)
        if (!status) {
                return IRQ_NONE;
        }
+       if (rdev->shutdown) {
+               return IRQ_NONE;
+       }
        while (status) {
                /* SW interrupt */
                if (status & RADEON_SW_INT_TEST) {