Changes in uspace/drv/block/pci-ide/pci-ide.c [221daa5:145d4e2e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/pci-ide.c
r221daa5 r145d4e2e 150 150 ctrl->bmregs_physical = res->bmregs; 151 151 152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x% lx",152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x%" PRIxPTR, 153 153 ctrl->bmregs_physical); 154 154 … … 186 186 bool irq_inited = false; 187 187 ata_params_t params; 188 void *buffer ;188 void *buffer = NULL; 189 189 190 190 ddf_msg(LVL_DEBUG, "pci_ide_channel_init()"); … … 294 294 return EOK; 295 295 error: 296 if (chan->channel != NULL) { 297 (void) ata_channel_destroy(chan->channel); 298 chan->channel = NULL; 299 } 300 if (buffer != NULL) 301 dmamem_unmap_anonymous(buffer); 296 302 if (irq_inited) 297 303 pci_ide_fini_irq(chan); … … 315 321 } 316 322 323 dmamem_unmap_anonymous(chan->dma_buf); 317 324 pci_ide_fini_irq(chan); 318 325 pci_ide_fini_io(chan);
Note:
See TracChangeset
for help on using the changeset viewer.