shithub: riscv

Download patch

ref: ef1ec09cf748391430b5ec7e230ce4563515a299
parent: ca7f016c7b21f7cf418201ba6ae955a9234e4304
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 23 13:40:43 EST 2014

pc64: fix mmu leak

--- a/sys/src/9/pc64/mmu.c
+++ b/sys/src/9/pc64/mmu.c
@@ -415,7 +415,7 @@
 	if((p = proc->kmaptail) != nil){
 		if((p->next = proc->mmuhead) == nil)
 			proc->mmutail = p;
-		proc->mmuhead = p;
+		proc->mmuhead = proc->kmaphead;
 		proc->mmucount += proc->kmapcount;
 
 		proc->kmaphead = proc->kmaptail = nil;