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/genarch/src/drivers/dsrln/dsrlnout.c

    r13db2044 r11b285d  
    7070outdev_t *dsrlnout_init(ioport8_t *base)
    7171{
    72         outdev_t *dsrlndev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
     72        outdev_t *dsrlndev = malloc(sizeof(outdev_t));
    7373        if (!dsrlndev)
    7474                return NULL;
    7575
    76         dsrlnout_instance_t *instance = malloc(sizeof(dsrlnout_instance_t),
    77             FRAME_ATOMIC);
     76        dsrlnout_instance_t *instance = malloc(sizeof(dsrlnout_instance_t));
    7877        if (!instance) {
    7978                free(dsrlndev);
Note: See TracChangeset for help on using the changeset viewer.