patch-1.3.53 linux/mm/memory.c
Next file: linux/mm/swap.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
-  Lines: 18
 -  Date:
Tue Jan  2 07:34:22 1996
 -  Orig file: 
v1.3.52/linux/mm/memory.c
 -  Orig date: 
Tue Dec 26 04:45:41 1995
 
diff -u --recursive --new-file v1.3.52/linux/mm/memory.c linux/mm/memory.c
@@ -57,7 +57,7 @@
 int nr_swap_pages = 0;
 int nr_free_pages = 0;
 struct mem_list free_area_list[NR_MEM_LISTS];
-unsigned char * free_area_map[NR_MEM_LISTS];
+unsigned int * free_area_map[NR_MEM_LISTS];
 
 /*
  * We special-case the C-O-W ZERO_PAGE, because it's such
@@ -669,7 +669,7 @@
 	 * case where we use a fake user buffer with get_fs/set_fs()) we
 	 * don't expect to find the address in the user vm map.
 	 */
-	if (get_fs() == get_ds())
+	if (!size || get_fs() == get_ds())
 		return 0;
 
 	vma = find_vma(current, start);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this