From: Stefan Richter Date: Sun, 21 Jan 2007 19:46:45 +0000 (+0100) Subject: firewire: fix failure path in ohci_enable_phys_dma X-Git-Tag: v2.6.22-rc1~111^2~120 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cad95fe97dc062d0367da125ac0b2e5f1694b23;p=linux-2.6 firewire: fix failure path in ohci_enable_phys_dma "goto out" happens with the lock taken. Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg --- diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index ea52e150a8..1b4b53d6d9 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c @@ -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; }