firewire: fix hang after card ejection
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 9 Jun 2007 17:31:14 +0000 (19:31 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 16 Jun 2007 10:43:20 +0000 (12:43 +0200)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
drivers/firewire/fw-ohci.c

index 0d08bf9..b72a5c1 100644 (file)
@@ -1001,7 +1001,7 @@ static irqreturn_t irq_handler(int irq, void *data)
 
        event = reg_read(ohci, OHCI1394_IntEventClear);
 
-       if (!event)
+       if (!event || !~event)
                return IRQ_NONE;
 
        reg_write(ohci, OHCI1394_IntEventClear, event);