]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
firewire: fix failure path in ohci_enable_phys_dma
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 21 Jan 2007 19:46:45 +0000 (20:46 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:02:41 +0000 (22:02 +0100)
"goto out" happens with the lock taken.

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 ea52e150a8e62adeb49b74d881e6c4758140ac57..1b4b53d6d92596da38706a7fb65da1bdae853435 100644 (file)
@@ -850,10 +850,8 @@ ohci_enable_phys_dma(struct fw_card *card, int node_id, int generation)
                          1 << (node_id - 32));
        }
        flush_writes(ohci);
-
-       spin_unlock_irqrestore(&ohci->lock, flags);
-
  out:
+       spin_unlock_irqrestore(&ohci->lock, flags);
        return retval;
 }