Changeset 11b285d in mainline for kernel/test/synch/workq-test-core.h


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/test/synch/workq-test-core.h

    r13db2044 r11b285d  
    7272static test_work_t *create_child(test_work_t *work)
    7373{
    74         test_work_t *child = malloc(sizeof(test_work_t), 0);
     74        test_work_t *child = nfmalloc(sizeof(test_work_t));
    7575        assert(child);
    7676        if (child) {
     
    152152        }
    153153
    154         test_work_t *work = malloc(sizeof(test_work_t), 0);
     154        test_work_t *work = nfmalloc(sizeof(test_work_t));
    155155
    156156        work->master = true;
Note: See TracChangeset for help on using the changeset viewer.