Changeset d2c5159 in mainline


Ignore:
Timestamp:
2018-05-11T20:51:17Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a1be76
Parents:
7473807
Message:

Test the value returned from dmamem_map_anonymous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdactl.c

    r7473807 rd2c5159  
    189189            hda->ctl->ok64bit ? 0 : DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0,
    190190            &hda->ctl->corb_phys, &hda->ctl->corb_virt);
     191        if (rc != EOK) {
     192                hda->ctl->corb_virt = NULL;
     193                ddf_msg(LVL_NOTE, "Failed allocating DMA memory for CORB");
     194                goto error;
     195        }
    191196
    192197        ddf_msg(LVL_NOTE, "Set CORB base registers");
Note: See TracChangeset for help on using the changeset viewer.