Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/pci-ide/pci-ide.c

    r221daa5 r145d4e2e  
    150150        ctrl->bmregs_physical = res->bmregs;
    151151
    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,
    153153            ctrl->bmregs_physical);
    154154
     
    186186        bool irq_inited = false;
    187187        ata_params_t params;
    188         void *buffer;
     188        void *buffer = NULL;
    189189
    190190        ddf_msg(LVL_DEBUG, "pci_ide_channel_init()");
     
    294294        return EOK;
    295295error:
     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);
    296302        if (irq_inited)
    297303                pci_ide_fini_irq(chan);
     
    315321        }
    316322
     323        dmamem_unmap_anonymous(chan->dma_buf);
    317324        pci_ide_fini_irq(chan);
    318325        pci_ide_fini_io(chan);
Note: See TracChangeset for help on using the changeset viewer.