Changeset 3d4750f in mainline for kernel/test/mm/mapping1.c


Ignore:
Timestamp:
2012-01-31T22:52:06Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
512a7df, 70922c2, b7068da, bb6f135
Parents:
bf31e3f (diff), 7b5789e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/mm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/mapping1.c

    rbf31e3f r3d4750f  
    6666                v = *((uint32_t *) page1);
    6767       
    68                 if (v != TEST_MAGIC)
     68                if (v != TEST_MAGIC) {
     69                        km_unmap(page0, PAGE_SIZE);
     70                        km_unmap(page1, PAGE_SIZE);
     71                        frame_free(frame);
    6972                        return "Criss-cross read does not match the value written.";
     73                }
    7074
    7175                TPRINTF("Writing zero using the second virtual address.\n");
     
    7781                v = *((uint32_t *) page0);
    7882       
    79                 if (v != 0)
     83                if (v != 0) {
     84                        km_unmap(page0, PAGE_SIZE);
     85                        km_unmap(page1, PAGE_SIZE);
     86                        frame_free(frame);
    8087                        return "Criss-cross read does not match the value written.";
     88                }
    8189        }
    8290
    83         // FIXME: do not leak frame, page0 and page1
     91        km_unmap(page0, PAGE_SIZE);
     92        km_unmap(page1, PAGE_SIZE);
     93        frame_free(frame);
    8494       
    8595        return NULL;
Note: See TracChangeset for help on using the changeset viewer.