Skip to content

Commit

Permalink
Fix correct usage of vunmap's order argument
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Claude Graf <[email protected]>
  • Loading branch information
jcjgraf authored and wipawel committed Dec 4, 2024
1 parent 41645bb commit fb882ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unittests.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ static unsigned long test_kernel_pmm_vmm_stress_test(void *arg) {

for (int j = 0; j < KT2_CHUNKS; j++) {
mfn_t mfn;
ASSERT(!vunmap_kern(_ptr(blocks[j]), &mfn, PAGE_ORDER_4K));
unsigned int order;
ASSERT(!vunmap_kern(_ptr(blocks[j]), &mfn, &order));
ASSERT(order == PAGE_ORDER_4K);
put_free_frame(mfn);
}
}
Expand Down

0 comments on commit fb882ca

Please sign in to comment.