]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] r8169: correct irq handler return value
authorFrançois Romieu <romieu@fr.zoreil.com>
Tue, 13 Apr 2004 10:25:05 +0000 (06:25 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 Apr 2004 10:25:05 +0000 (06:25 -0400)
The irq handler must not return 1 when the status register is null
during the firt iteration.

drivers/net/r8169.c

index ec1769dd243cbdfcb71037f5d29feab02c87b570..67b5d541dd746773c4e0a68642c841c8e77e315c 100644 (file)
@@ -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;