From: akeemting Date: Thu, 9 Oct 2008 02:50:03 +0000 (-0700) Subject: jme: Faulty IRQ handle bug fix X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=576b5223e2caa0f19afb8ac17455759c214370ce;p=linux-beck.git jme: Faulty IRQ handle bug fix Fix IRQ handle bug when interrupt mode. The driver was incorrectly handled and returned IRQ_HANDLED while the device is not generating the interrupt. It happened due to faulty determination of interrupt status register. Found by: "Ethan" Fixed by: "akeemting" Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller --- diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 635f616fd974..3ab2442cd228 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c @@ -1463,7 +1463,7 @@ jme_intr(int irq, void *dev_id) /* * Check if it's really an interrupt for us */ - if (unlikely(intrstat == 0)) + if (unlikely((intrstat & INTR_ENABLE) == 0)) return IRQ_NONE; /*