patch-2.0.11 linux/mm/vmalloc.c

Next file: linux/net/core/dev.c
Previous file: linux/mm/mmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/mm/vmalloc.c linux/mm/vmalloc.c
@@ -306,7 +306,7 @@
 	void * addr;
 	struct vm_struct * area;
 
-	if (offset < high_memory)
+	if (MAP_NR(offset) < MAP_NR(high_memory))
 		return NULL;
 	if (offset & ~PAGE_MASK)
 		return NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov