Changeset 11b285d in mainline for kernel/arch/ia64/src/ddi/ddi.c


Ignore:
Timestamp:
2018-05-13T15:19:32Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad896eb
Parents:
13db2044
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
Message:

Use standard signature for malloc() in kernel.

The remaining instances of blocking allocation are replaced with
a new separate function named nfmalloc (short for non-failing malloc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ddi/ddi.c

    r13db2044 r11b285d  
    5656{
    5757        if (!task->arch.iomap) {
    58                 task->arch.iomap = malloc(sizeof(bitmap_t), FRAME_ATOMIC);
     58                task->arch.iomap = malloc(sizeof(bitmap_t));
    5959                if (task->arch.iomap == NULL)
    6060                        return ENOMEM;
    6161
    62                 void *store = malloc(bitmap_size(IO_MEMMAP_PAGES),
    63                     FRAME_ATOMIC);
     62                void *store = malloc(bitmap_size(IO_MEMMAP_PAGES));
    6463                if (store == NULL)
    6564                        return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.