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

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