drm/nouveau: detect disabled device in irq handler and return IRQ_NONE
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -79,7 +79,7 @@ nouveau_irq_handler(DRM_IRQ_ARGS)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
stat = nv_rd32(dev, NV03_PMC_INTR_0);
|
stat = nv_rd32(dev, NV03_PMC_INTR_0);
|
||||||
if (!stat)
|
if (stat == 0 || stat == ~0)
|
||||||
return IRQ_NONE;
|
return IRQ_NONE;
|
||||||
|
|
||||||
spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
|
spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
|
||||||
|
Reference in New Issue
Block a user