Explorar o código

firewire: fix hang after card ejection

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Stefan Richter %!s(int64=18) %!d(string=hai) anos
pai
achega
a515958d6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/firewire/fw-ohci.c

+ 1 - 1
drivers/firewire/fw-ohci.c

@@ -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);