patch-2.3.29 linux/fs/nfs/file.c

Next file: linux/fs/nfs/read.c
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/fs/nfs/file.c linux/fs/nfs/file.c
@@ -171,7 +171,8 @@
 {
 	long status;
 
-	bytes -= copy_from_user((u8*)page_address(page) + offset, buf, bytes);
+	bytes -= copy_from_user((u8*)kmap(page) + offset, buf, bytes);
+	kunmap(page);
 	status = -EFAULT;
 	if (bytes) {
 		lock_kernel();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)