patch-2.1.4 linux/fs/nfs/symlink.c

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

diff -u --recursive --new-file v2.1.3/linux/fs/nfs/symlink.c linux/fs/nfs/symlink.c
@@ -109,7 +109,7 @@
 		&res, &len, buflen);
 	iput(inode);
 	if (! error) {
-		memcpy_tofs(buffer, res, len);
+		copy_to_user(buffer, res, len);
 		put_user('\0', buffer + len);
 		error = len;
 	}

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