Changeset 5df1963 in mainline for kernel/generic/src/ddi/ddi.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/ddi/ddi.c

    ra501e22c r5df1963  
    339339        if (!as_area_create(TASK->as, map_flags, size,
    340340            AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) {
    341                 frame_free_noreserve(*phys);
     341                frame_free_noreserve(*phys, frames);
    342342                return ENOMEM;
    343343        }
Note: See TracChangeset for help on using the changeset viewer.