Oops, dropped a paren

This commit is contained in:
Austin Clements 2011-09-02 14:37:42 -04:00
parent 2eb214c9db
commit 6f3ca059f2

2
vm.c
View file

@ -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");