From: Kees Jongenburger Date: Mon, 31 Dec 2012 17:43:25 +0000 (+0000) Subject: vm: Fix sparepage resource leak. X-Git-Tag: v3.2.1~144 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=fce5ff651334fdd14bf09104ad4768c459541a02;p=minix.git vm: Fix sparepage resource leak. Fix a sparepage resource leak by preventing to call vm_getsparepage twice. Change-Id: I06557d47b90a7cca74e0a86921c2579f9618685d --- diff --git a/servers/vm/arch/i386/pagetable.c b/servers/vm/arch/i386/pagetable.c index 19051299b..5a3f2dd07 100644 --- a/servers/vm/arch/i386/pagetable.c +++ b/servers/vm/arch/i386/pagetable.c @@ -402,8 +402,6 @@ void *vm_allocpages(phys_bytes *phys, int reason, int pages) if((level > 1) || !pt_init_done) { void *s; - s=vm_getsparepage(phys); - if(pages == 1) s=vm_getsparepage(phys); else if(pages == 4) s=vm_getsparepagedir(phys); else panic("%d pages", pages);