pmm: add assert against use after free

This commit is contained in:
Matheus
2024-06-16 12:48:31 -03:00
parent f05eb36cfd
commit 68624ad31b
+1
View File
@@ -168,6 +168,7 @@ void *pmm_allocpage(int section) {
page = freelists[i];
if (page) {
removefromfreelist(page);
__assert(page->refcount == 0);
break;
}
}