patch-2.1.4 linux/drivers/char/lp_m68k.c
Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sun Oct 13 21:11:11 1996
-  Orig file: 
v2.1.3/linux/drivers/char/lp_m68k.c
-  Orig date: 
Mon May  6 12:49:43 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/char/lp_m68k.c linux/drivers/char/lp_m68k.c
@@ -191,7 +191,7 @@
     lp_table[dev].bytes_written = 0;	/* init buffer read-pointer */
     lp_error = 0;
     lp_table[dev].copy_size = (count <= LP_BUFFER_SIZE ? count : LP_BUFFER_SIZE);
-    memcpy_fromfs(lp_table[dev].lp_buffer, buf, lp_table[dev].copy_size);
+    copy_from_user(lp_table[dev].lp_buffer, buf, lp_table[dev].copy_size);
     while (lp_table[dev].copy_size) {
       save_flags(flags);
       cli();				/* no interrupts now */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov