patch-2.1.4 linux/net/ipv4/rarp.c

Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/ipmr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/net/ipv4/rarp.c linux/net/ipv4/rarp.c
@@ -290,7 +290,7 @@
 	struct rtable *rt;
 	struct device * dev;
   
-	memcpy_fromfs(&r, req, sizeof(r));
+	copy_from_user(&r, req, sizeof(r));
   
 	/*
 	 *	We only understand about IP addresses... 
@@ -395,7 +395,7 @@
  *	We only understand about IP addresses...
  */
         
-	memcpy_fromfs(&r, req, sizeof(r));
+	copy_from_user(&r, req, sizeof(r));
   
 	if (r.arp_pa.sa_family != AF_INET)
 		return -EPFNOSUPPORT;
@@ -430,7 +430,7 @@
  *        Copy the information back
  */
   
-	memcpy_tofs(req, &r, sizeof(r));
+	copy_to_user(req, &r, sizeof(r));
 	return 0;
 }
 
@@ -453,7 +453,7 @@
 			err = verify_area(VERIFY_READ, arg, sizeof(struct arpreq));
 			if(err)
 				return err;
-			memcpy_fromfs(&r, arg, sizeof(r));
+			copy_from_user(&r, arg, sizeof(r));
 			if (r.arp_pa.sa_family != AF_INET)
 				return -EPFNOSUPPORT;
 			si = (struct sockaddr_in *) &r.arp_pa;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov