patch-2.1.4 linux/arch/i386/kernel/ldt.c
Next file: linux/arch/i386/kernel/ptrace.c
Previous file: linux/arch/i386/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Oct 15 09:41:20 1996
- Orig file:
v2.1.3/linux/arch/i386/kernel/ldt.c
- Orig date:
Wed Sep 25 12:50:14 1996
diff -u --recursive --new-file v2.1.3/linux/arch/i386/kernel/ldt.c linux/arch/i386/kernel/ldt.c
@@ -32,7 +32,7 @@
error = verify_area(VERIFY_WRITE, ptr, size);
if (error)
return error;
- memcpy_tofs(ptr, address, size);
+ copy_to_user(ptr, address, size);
return size;
}
@@ -73,7 +73,7 @@
if (error)
return error;
- memcpy_fromfs(&ldt_info, ptr, sizeof(ldt_info));
+ copy_from_user(&ldt_info, ptr, sizeof(ldt_info));
if (ldt_info.contents == 3 || ldt_info.entry_number >= LDT_ENTRIES)
return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov