Changeset cd3b380 in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2013-09-11T11:56:39Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1db5669
Parents:
43dd8028
Message:

due to the removal of FRAME_KA, the return value of frame_alloc*() needs to be checked before converting the physical address to kernel address

File:
1 edited

Legend:

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

    r43dd8028 rcd3b380  
    182182        size_t zone = 0;
    183183       
    184         void *data = (void *)
    185             PA2KA(frame_alloc_generic(cache->frames, flags, 0, &zone));
    186         if (!data)
     184        uintptr_t data_phys =
     185            frame_alloc_generic(cache->frames, flags, 0, &zone);
     186        if (!data_phys)
    187187                return NULL;
     188       
     189        void *data = (void *) PA2KA(data_phys);
    188190       
    189191        slab_t *slab;
Note: See TracChangeset for help on using the changeset viewer.