patch-2.4.20 linux-2.4.20/fs/ncpfs/ioctl.c
Next file: linux-2.4.20/fs/ncpfs/ncplib_kernel.c
Previous file: linux-2.4.20/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/fs/ncpfs/ioctl.c
- Orig date:
Mon Sep 10 07:31:30 2001
diff -urN linux-2.4.19/fs/ncpfs/ioctl.c linux-2.4.20/fs/ncpfs/ioctl.c
@@ -418,7 +418,7 @@
if (user.object_name_len) {
newname = ncp_kmalloc(user.object_name_len, GFP_USER);
if (!newname) return -ENOMEM;
- if (copy_from_user(newname, user.object_name, sizeof(user))) {
+ if (copy_from_user(newname, user.object_name, user.object_name_len)) {
ncp_kfree_s(newname, user.object_name_len);
return -EFAULT;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)