From 6f3ca059f22703c212ac1ea59ea298eb1efb6743 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 2 Sep 2011 14:37:42 -0400 Subject: [PATCH] Oops, dropped a paren --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.c b/vm.c index 3e52b44..f2251ac 100644 --- a/vm.c +++ b/vm.c @@ -77,7 +77,7 @@ mappages(pde_t *pgdir, void *va, uint size, uint pa, a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); for(;;){ - if((pte = walkpgdir(pgdir, a, alloc) == 0) + if((pte = walkpgdir(pgdir, a, alloc)) == 0) return -1; if(*pte & PTE_P) panic("remap");