patch-2.1.4 linux/net/ipv4/route.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/raw.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sun Oct 13 21:11:27 1996
-  Orig file: 
v2.1.3/linux/net/ipv4/route.c
-  Orig date: 
Mon May 27 13:09:06 1996
diff -u --recursive --new-file v2.1.3/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -1699,7 +1699,7 @@
 			err=verify_area(VERIFY_READ, arg, sizeof(struct rtentry));
 			if (err)
 				return err;
-			memcpy_fromfs(&rt, arg, sizeof(struct rtentry));
+			copy_from_user(&rt, arg, sizeof(struct rtentry));
 			return (cmd == SIOCDELRT) ? ip_rt_kill(&rt) : ip_rt_new(&rt);
 	}
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov