# Fixed a couple of fencepost errors noticed by Blaisorblade. The end of # range tests should be < rather than <=. Also reworded the comment to # make it less misleading. Index: um/arch/um/main.c =================================================================== --- um.orig/arch/um/main.c 2004-08-06 15:17:08.000000000 -0400 +++ um/arch/um/main.c 2004-08-06 16:29:48.000000000 -0400 @@ -219,7 +219,7 @@ * kernel virtual memory - vmalloc/vfree * anywhere else - malloc/free * If kmalloc is not yet possible, then the kernel memory regions - * may not be set up yet, and the variables not initialized. So, + * may not be set up yet, and the variables not set up. So, * free is called. * * CAN_KMALLOC is checked because it would be bad to free a buffer @@ -227,11 +227,11 @@ * shutdown. */ - if((addr >= uml_physmem) && (addr <= high_physmem)){ + if((addr >= uml_physmem) && (addr < high_physmem)){ if(CAN_KMALLOC()) kfree(ptr); } - else if((addr >= start_vm) && (addr <= end_vm)){ + else if((addr >= start_vm) && (addr < end_vm)){ if(CAN_KMALLOC()) vfree(ptr); }