From: Jerome Glisse Date: Wed, 9 Sep 2009 20:23:07 +0000 (+0200) Subject: drm/radeon/kms: Don't try to process irq when we are unloading X-Git-Tag: v2.6.32-rc3~64^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a513c184d99fe10e7b20771ef86f5f807769318f;p=platform%2Fkernel%2Flinux-stable.git drm/radeon/kms: Don't try to process irq when we are unloading 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 4e1c551..4dd5ca5 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c @@ -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) {