patch-2.1.4 linux/drivers/block/rd.c
Next file: linux/drivers/cdrom/aztcd.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Oct 13 21:11:10 1996
- Orig file:
v2.1.3/linux/drivers/block/rd.c
- Orig date:
Sat Oct 5 16:58:34 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -188,7 +188,7 @@
left = initrd_end-initrd_start-file->f_pos;
if (count > left) count = left;
if (count == 0) return 0;
- memcpy_tofs(buf,(char *) initrd_start+file->f_pos,count);
+ copy_to_user(buf,(char *) initrd_start+file->f_pos,count);
file->f_pos += count;
return count;
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]