]> Zhao Yanbai Git Server - minix.git/commitdiff
missing level-- in out-of-memory case.
authorBen Gras <ben@minix3.org>
Wed, 23 Sep 2009 15:19:36 +0000 (15:19 +0000)
committerBen Gras <ben@minix3.org>
Wed, 23 Sep 2009 15:19:36 +0000 (15:19 +0000)
servers/vm/i386/pagetable.c

index 93b2618c285050f06c7acda83afcae53ad137a07..9d045ea32a262007d970fcfa3259e5dfec3e9a77 100644 (file)
@@ -317,6 +317,7 @@ PUBLIC void *vm_allocpage(phys_bytes *phys, int reason)
                I386_VM_PRESENT | I386_VM_USER | I386_VM_WRITE, 0)) != OK) {
                FREE_MEM(newpage, CLICKSPERPAGE);
                printf("vm_allocpage writemap failed\n", ret);
+               level--;
                return NULL;
        }