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/sparc64/src/drivers/pci.c

    r13db2044 r11b285d  
    103103                return NULL;
    104104
    105         pci = (pci_t *) malloc(sizeof(pci_t), FRAME_ATOMIC);
     105        pci = (pci_t *) malloc(sizeof(pci_t));
    106106        if (!pci)
    107107                return NULL;
     
    145145                return NULL;
    146146
    147         pci = (pci_t *) malloc(sizeof(pci_t), FRAME_ATOMIC);
     147        pci = (pci_t *) malloc(sizeof(pci_t));
    148148        if (!pci)
    149149                return NULL;
Note: See TracChangeset for help on using the changeset viewer.