Skip to content

Commit

Permalink
jme: Faulty IRQ handle bug fix
Browse files Browse the repository at this point in the history
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" <ethanhsiao@jmicron.com>
Fixed by: "akeemting" <akeem@jmicron.com>
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
akeemting authored and David S. Miller committed Oct 9, 2008
1 parent a821ebe commit 576b522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 576b522

Please sign in to comment.