vmmcache: fix page retry

This commit is contained in:
Matheus
2024-05-26 13:39:28 -03:00
parent 3bcc3e5585
commit e6954a3a70
+1 -1
View File
@@ -113,7 +113,7 @@ int vmmcache_getpage(vnode_t *vnode, uintmax_t offset, page_t **res) {
// in the case of a retry, release the allocated page here
if (newpage)
pmm_release(newpage);
pmm_release(pmm_getpageaddress(newpage));
// wait for page to be ready
while ((page->flags & (PAGE_FLAGS_READY | PAGE_FLAGS_ERROR)) == 0)