Changes in kernel/test/mm/mapping1.c [7b5789e:20de14d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/mapping1.c
r7b5789e r20de14d 66 66 v = *((uint32_t *) page1); 67 67 68 if (v != TEST_MAGIC) { 69 km_unmap(page0, PAGE_SIZE); 70 km_unmap(page1, PAGE_SIZE); 71 frame_free(frame); 68 if (v != TEST_MAGIC) 72 69 return "Criss-cross read does not match the value written."; 73 }74 70 75 71 TPRINTF("Writing zero using the second virtual address.\n"); … … 81 77 v = *((uint32_t *) page0); 82 78 83 if (v != 0) { 84 km_unmap(page0, PAGE_SIZE); 85 km_unmap(page1, PAGE_SIZE); 86 frame_free(frame); 79 if (v != 0) 87 80 return "Criss-cross read does not match the value written."; 88 }89 81 } 90 82 91 km_unmap(page0, PAGE_SIZE); 92 km_unmap(page1, PAGE_SIZE); 93 frame_free(frame); 83 // FIXME: do not leak frame, page0 and page1 94 84 95 85 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.