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

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

diff -u --recursive --new-file v2.1.4/linux/drivers/char/ftape/ftape-read.c linux/drivers/char/ftape/ftape-read.c
@@ -656,7 +656,7 @@
 				TRACE_EXIT;
 				return -EIO;
 			}
-			memcpy_tofs(buff, deblock_buffer + buf_pos_rd, cnt);
+			copy_to_user(buff, deblock_buffer + buf_pos_rd, cnt);
 			buff += cnt;
 			to_do -= cnt;	/* what's left from req_len */
 			remaining -= cnt;	/* what remains on this tape */

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