patch-2.1.4 linux/fs/smbfs/proc.c
Next file: linux/fs/smbfs/sock.c
Previous file: linux/fs/smbfs/ioctl.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sun Oct 13 21:11:20 1996
- Orig file:
v2.1.3/linux/fs/smbfs/proc.c
- Orig date:
Thu Sep 26 15:28:30 1996
diff -u --recursive --new-file v2.1.3/linux/fs/smbfs/proc.c linux/fs/smbfs/proc.c
@@ -102,7 +102,7 @@
*p ++ = 5;
p = smb_encode_word(p, len);
if (fs)
- memcpy_fromfs(p, data, len);
+ copy_from_user(p, data, len);
else
memcpy(p, data, len);
return p + len;
@@ -122,7 +122,7 @@
p += 3;
if (fs)
- memcpy_tofs(data, p, len);
+ copy_to_user(data, p, len);
else
memcpy(data, p, len);
@@ -622,7 +622,7 @@
file-id would not be valid after a reconnection. */
/* smb_proc_read: fs indicates if it should be copied with
- memcpy_tofs. */
+ copy_to_user. */
int
smb_proc_read(struct smb_server *server, struct smb_dirent *finfo,
@@ -702,7 +702,7 @@
*p++ = 1;
WSET(p, 0, count);
- memcpy_fromfs(p+2, data, count);
+ copy_from_user(p+2, data, count);
if ((res = smb_request_ok(server, SMBwrite, 1, 0)) >= 0) {
res = WVAL(buf, smb_vwv0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov