patch-2.1.4 linux/drivers/net/dgrs.c
Next file: linux/drivers/net/dgrs_driver.c
Previous file: linux/drivers/net/depca.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Oct 13 21:11:13 1996
- Orig file:
v2.1.3/linux/drivers/net/dgrs.c
- Orig date:
Wed Sep 25 11:50:26 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/net/dgrs.c linux/drivers/net/dgrs.c
@@ -693,7 +693,7 @@
if (rc) return (rc);
if (cmd != DGRSIOCTL) return -EINVAL;
- memcpy_fromfs(&ioc, ifr->ifr_data, sizeof(DGRS_IOCTL));
+ copy_from_user(&ioc, ifr->ifr_data, sizeof(DGRS_IOCTL));
switch (ioc.cmd)
{
@@ -702,7 +702,7 @@
return -EINVAL;
rc = verify_area(VERIFY_WRITE, (void *) ioc.data, ioc.len);
if (rc) return (rc);
- memcpy_tofs(ioc.data, &dev->mem_start, ioc.len);
+ copy_to_user(ioc.data, &dev->mem_start, ioc.len);
return (0);
case DGRS_SETFILTER:
rc = verify_area(VERIFY_READ, (void *) ioc.data, ioc.len);
@@ -730,7 +730,7 @@
if (ioc.len)
{
- memcpy_fromfs(S2H(priv->bcomm->bc_filter_area),
+ copy_from_user(S2H(priv->bcomm->bc_filter_area),
ioc.data, ioc.len);
priv->bcomm->bc_filter_cmd = BC_FILTER_SET;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov