patch-2.1.4 linux/drivers/net/pt.c
Next file: linux/drivers/net/sdla.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:13 1996
- Orig file:
v2.1.3/linux/drivers/net/pt.c
- Orig date:
Fri Apr 12 09:49:38 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/net/pt.c linux/drivers/net/pt.c
@@ -1039,7 +1039,7 @@
if (cmd != SIOCDEVPRIVATE)
return -EINVAL;
- memcpy_fromfs(&rq, ifr->ifr_data, sizeof(struct pt_req));
+ copy_from_user(&rq, ifr->ifr_data, sizeof(struct pt_req));
switch (rq.cmd) {
case SIOCSPIPARAM:
@@ -1095,7 +1095,7 @@
rq.clockmode = lp->clockmode;
rq.dmachan = lp->dmachan;
rq.irq = dev->irq;
- memcpy_tofs(ifr->ifr_data, &rq, sizeof(struct pt_req));
+ copy_to_user(ifr->ifr_data, &rq, sizeof(struct pt_req));
ret = 0;
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov