aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-01-21 14:46:45 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:41 -0500
commit6cad95fe97dc062d0367da125ac0b2e5f1694b23 (patch)
tree54f7193d91e44adfb983374acb2128667189eca4 /drivers
parent5af4e5eab30d481f76b89a2167c873dfad960acb (diff)
firewire: fix failure path in ohci_enable_phys_dma
"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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firewire/fw-ohci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c
index ea52e150a8e6..1b4b53d6d925 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)
850 1 << (node_id - 32)); 850 1 << (node_id - 32));
851 } 851 }
852 flush_writes(ohci); 852 flush_writes(ohci);
853
854 spin_unlock_irqrestore(&ohci->lock, flags);
855
856 out: 853 out:
854 spin_unlock_irqrestore(&ohci->lock, flags);
857 return retval; 855 return retval;
858} 856}
859 857