git: 9front

Download patch

ref: ddeb7dce8a6777c522269aed35849032a7063bc9
parent: aecdaa3ee14ad9fe89ee098597723c88f98052b2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jun 3 03:47:09 EDT 2014

kernel: remove wrong and needles mapsize check in newseg() (thanks Yoann Padioleau)

--- a/sys/src/9/port/segment.c
+++ b/sys/src/9/port/segment.c
@@ -66,8 +66,6 @@
 
 	mapsize = ROUND(size, PTEPERTAB)/PTEPERTAB;
 	if(mapsize > nelem(s->ssegmap)){
-		if(mapsize > (SEGMAPSIZE*PTEPERTAB))
-			mapsize = (SEGMAPSIZE*PTEPERTAB);
 		s->map = smalloc(mapsize*sizeof(Pte*));
 		s->mapsize = mapsize;
 	}
--