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

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