patch-2.1.4 linux/net/netlink.c
Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipx/af_ipx.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/netlink.c
- Orig date:
Mon Jun 3 12:42:42 1996
diff -u --recursive --new-file v2.1.3/linux/net/netlink.c linux/net/netlink.c
@@ -88,7 +88,7 @@
struct sk_buff *skb;
skb=alloc_skb(count, GFP_KERNEL);
skb->free=1;
- memcpy_fromfs(skb_put(skb,count),buf, count);
+ copy_from_user(skb_put(skb,count),buf, count);
return (netlink_handler[minor])(skb);
}
@@ -119,7 +119,7 @@
sti();
if(skb->len<count)
count=skb->len;
- memcpy_tofs(buf,skb->data,count);
+ copy_to_user(buf,skb->data,count);
kfree_skb(skb, FREE_READ);
return count;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov