Changeset 11b285d in mainline for kernel/genarch/src/ofw/ofw_tree.c


Ignore:
Timestamp:
2018-05-13T15:19:32Z (7 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/ofw/ofw_tree.c

    r13db2044 r11b285d  
    348348                return NULL;
    349349
    350         void *dump = malloc(*size, FRAME_ATOMIC);
     350        void *dump = malloc(*size);
    351351        if (dump == NULL) {
    352352                *size = 0;
     
    386386static void ofw_tree_node_sysinfo(ofw_tree_node_t *node, const char *path)
    387387{
    388         char *cur_path = (char *) malloc(PATH_MAX_LEN, 0);
     388        char *cur_path = (char *) nfmalloc(PATH_MAX_LEN);
    389389
    390390        for (ofw_tree_node_t *cur = node; cur; cur = cur->peer) {
Note: See TracChangeset for help on using the changeset viewer.