patch-1.3.99 linux/mm/filemap.c

Next file: linux/mm/swapfile.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.98/linux/mm/filemap.c linux/mm/filemap.c
@@ -779,7 +779,8 @@
 		free_page(page);
 		return new_page;
 	}
-	flush_page_to_ram(page);
+	if (page)
+		flush_page_to_ram(page);
 	return page;
 }
 

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