patch-2.1.4 linux/net/netrom/nr_route.c
Next file: linux/net/socket.c
Previous file: linux/net/netrom/af_netrom.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:27 1996
- Orig file:
v2.1.3/linux/net/netrom/nr_route.c
- Orig date:
Wed Aug 7 08:41:57 1996
diff -u --recursive --new-file v2.1.3/linux/net/netrom/nr_route.c linux/net/netrom/nr_route.c
@@ -578,7 +578,7 @@
case SIOCADDRT:
if ((err = verify_area(VERIFY_READ, arg, sizeof(struct nr_route_struct))) != 0)
return err;
- memcpy_fromfs(&nr_route, arg, sizeof(struct nr_route_struct));
+ copy_from_user(&nr_route, arg, sizeof(struct nr_route_struct));
if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
return -EINVAL;
switch (nr_route.type) {
@@ -598,7 +598,7 @@
case SIOCDELRT:
if ((err = verify_area(VERIFY_READ, arg, sizeof(struct nr_route_struct))) != 0)
return err;
- memcpy_fromfs(&nr_route, arg, sizeof(struct nr_route_struct));
+ copy_from_user(&nr_route, arg, sizeof(struct nr_route_struct));
if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
return -EINVAL;
switch (nr_route.type) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov