patch-2.1.4 linux/drivers/block/hd.c
Next file: linux/drivers/block/ide-cd.c
Previous file: linux/drivers/block/floppy.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Oct 13 21:11:09 1996
- Orig file:
v2.1.3/linux/drivers/block/hd.c
- Orig date:
Fri Mar 1 07:50:39 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/block/hd.c linux/drivers/block/hd.c
@@ -878,7 +878,7 @@
err = verify_area(VERIFY_WRITE, (char *) arg, sizeof(struct hd_driveid));
if (err)
return err;
- memcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
+ copy_to_user((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
return 0;
RO_IOCTLS(inode->i_rdev,arg);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov