Changeset 5df1963 in mainline for kernel/test/mm/mapping1.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/test/mm/mapping1.c

    ra501e22c r5df1963  
    6565                        km_unmap(page0, PAGE_SIZE);
    6666                        km_unmap(page1, PAGE_SIZE);
    67                         frame_free(frame);
     67                        frame_free(frame, 1);
    6868                        return "Criss-cross read does not match the value written.";
    6969                }
     
    8080                        km_unmap(page0, PAGE_SIZE);
    8181                        km_unmap(page1, PAGE_SIZE);
    82                         frame_free(frame);
     82                        frame_free(frame, 1);
    8383                        return "Criss-cross read does not match the value written.";
    8484                }
     
    8787        km_unmap(page0, PAGE_SIZE);
    8888        km_unmap(page1, PAGE_SIZE);
    89         frame_free(frame);
     89        frame_free(frame, 1);
    9090       
    9191        return NULL;
Note: See TracChangeset for help on using the changeset viewer.