Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau: detect disabled device in irq handler and return IRQ_NONE

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nouveau_irq.c
··· 79 79 int i; 80 80 81 81 stat = nv_rd32(dev, NV03_PMC_INTR_0); 82 - if (!stat) 82 + if (stat == 0 || stat == ~0) 83 83 return IRQ_NONE; 84 84 85 85 spin_lock_irqsave(&dev_priv->context_switch_lock, flags);