Changeset dc5647e in mainline for uspace/drv/block/pci-ide/pci-ide.c


Ignore:
Timestamp:
2024-07-08T19:00:57Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
878736e
Parents:
e3997a8
Message:

PC floppy disk driver

Bare minimum implemented.

File:
1 edited

Legend:

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

    re3997a8 rdc5647e  
    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 (buffer != NULL)
     297                dmamem_unmap_anonymous(buffer);
    296298        if (irq_inited)
    297299                pci_ide_fini_irq(chan);
     
    315317        }
    316318
     319        dmamem_unmap_anonymous(chan->dma_buf);
    317320        pci_ide_fini_irq(chan);
    318321        pci_ide_fini_io(chan);
Note: See TracChangeset for help on using the changeset viewer.