patch-2.1.4 linux/net/ipv4/raw.c
Next file: linux/net/ipv4/route.c
Previous file: linux/net/ipv4/rarp.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/ipv4/raw.c
- Orig date:
Sat Oct 5 16:58:36 1996
diff -u --recursive --new-file v2.1.3/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -182,7 +182,7 @@
static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen)
{
- memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen);
+ copy_from_user(to, (const unsigned char *)p+offset, fraglen);
}
/*
@@ -191,7 +191,7 @@
static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen)
{
- memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen);
+ copy_from_user(to, (const unsigned char *)p+offset, fraglen);
if(offset==0)
{
struct iphdr *iph=(struct iphdr *)to;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov