patch-2.1.4 linux/net/core/datagram.c

Next file: linux/net/core/dev.c
Previous file: linux/net/bridge/br.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/net/core/datagram.c linux/net/core/datagram.c
@@ -170,7 +170,7 @@
 
 void skb_copy_datagram(struct sk_buff *skb, int offset, char *to, int size)
 {
-	memcpy_tofs(to,skb->h.raw+offset,size);
+	copy_to_user(to,skb->h.raw+offset,size);
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov