patch-2.1.4 linux/fs/ext/inode.c

Next file: linux/fs/ext2/file.c
Previous file: linux/fs/ext/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/fs/ext/inode.c linux/fs/ext/inode.c
@@ -166,7 +166,7 @@
 	tmp.f_files = sb->u.ext_sb.s_ninodes;
 	tmp.f_ffree = ext_count_free_inodes(sb);
 	tmp.f_namelen = EXT_NAME_LEN;
-	memcpy_tofs(buf, &tmp, bufsiz);
+	copy_to_user(buf, &tmp, bufsiz);
 }
 
 #define inode_bmap(inode,nr) ((inode)->u.ext_i.i_data[(nr)])

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