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

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