Commit 8d6eb2db authored by François Romieu's avatar François Romieu Committed by Jeff Garzik

[PATCH] r8169: correct irq handler return value

The irq handler must not return 1 when the status register is null
during the firt iteration.
parent ffccc2f4
......@@ -1537,8 +1537,8 @@ rtl8169_interrupt(int irq, void *dev_instance, struct pt_regs *regs)
do {
status = RTL_R16(IntrStatus);
/* h/w no longer present (hotplug?) or major error, bail */
if (status == 0xFFFF)
/* hotplug/major error/no more work/shared irq */
if ((status == 0xFFFF) || !status)
break;
handled = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment