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


Ignore:
Timestamp:
2013-09-10T21:47:25Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0511549
Parents:
a501e22c
Message:

bitmap frame allocator does not keep track of the size of the allocated frame blocks
to avoid memory leaks the number of allocated frames needs to be passed explicitly during deallocation

File:
1 edited

Legend:

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

    ra501e22c r5df1963  
    193193                slab = slab_alloc(slab_extern_cache, flags);
    194194                if (!slab) {
    195                         frame_free(KA2PA(data));
     195                        frame_free(KA2PA(data), cache->frames);
    196196                        return NULL;
    197197                }
     
    225225NO_TRACE static size_t slab_space_free(slab_cache_t *cache, slab_t *slab)
    226226{
    227         frame_free(KA2PA(slab->start));
     227        frame_free(KA2PA(slab->start), slab->cache->frames);
    228228        if (!(cache->flags & SLAB_CACHE_SLINSIDE))
    229229                slab_free(slab_extern_cache, slab);
Note: See TracChangeset for help on using the changeset viewer.