Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 300f4c4 in mainline for kernel/generic/src/mm/km.c


Ignore:
Timestamp:
2017-09-30T18:52:38Z (4 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
6886705
Parents:
91b60499
Message:

Let the resource allocator treat 0 as a valid resource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/km.c

    r91b60499 r300f4c4  
    117117uintptr_t km_page_alloc(size_t size, size_t align)
    118118{
    119         return ra_alloc(km_ni_arena, size, align);
     119        uintptr_t base;
     120        if (ra_alloc(km_ni_arena, size, align, &base))
     121                return base;
     122        else
     123                return (uintptr_t) NULL;
    120124}
    121125
Note: See TracChangeset for help on using the changeset viewer.