aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/ohci.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index 4f6d72f87f6f..ded0c9bf96f4 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -2178,8 +2178,13 @@ static int ohci_enable(struct fw_card *card,
2178 ohci_driver_name, ohci)) { 2178 ohci_driver_name, ohci)) {
2179 fw_error("Failed to allocate interrupt %d.\n", dev->irq); 2179 fw_error("Failed to allocate interrupt %d.\n", dev->irq);
2180 pci_disable_msi(dev); 2180 pci_disable_msi(dev);
2181 dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE, 2181
2182 ohci->config_rom, ohci->config_rom_bus); 2182 if (config_rom) {
2183 dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE,
2184 ohci->next_config_rom,
2185 ohci->next_config_rom_bus);
2186 ohci->next_config_rom = NULL;
2187 }
2183 return -EIO; 2188 return -EIO;
2184 } 2189 }
2185 2190