patch-2.1.5 linux/drivers/char/ftape/ftape-write.c

Next file: linux/drivers/char/tpqic02.c
Previous file: linux/drivers/char/ftape/ftape-read.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.4/linux/drivers/char/ftape/ftape-write.c linux/drivers/char/ftape/ftape-write.c
@@ -639,7 +639,7 @@
 				TRACE_EXIT;
 				return result;
 			}
-			memcpy_fromfs(deblock_buffer + buf_pos_wr, buff, cnt);
+			copy_from_user(deblock_buffer + buf_pos_wr, buff, cnt);
 			buff += cnt;
 			req_len -= cnt;
 			buf_pos_wr += cnt;

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