Commit 463c7e1a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d976419c
......@@ -1087,8 +1087,8 @@ static void vma_mmap_page(VMA *vma, Page *page) {
pgoff_invma = page->f_pgoffset - vma->f_pgoffset;
if (!bitmap_test_bit(vma->page_ismappedv, pgoff_invma)) {
// XXX err
page_mmap(page, vma_page_addr(vma, page), prot);
void *mmapped = page_mmap(page, vma_page_addr(vma, page), prot);
BUG_ON(!mmapped);
bitmap_set_bit(vma->page_ismappedv, pgoff_invma);
page_incref(page);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment