patch-2.2.10 linux/fs/ncpfs/inode.c
Next file: linux/fs/ncpfs/ioctl.c
Previous file: linux/fs/ncpfs/file.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri May 14 12:43:13 1999
- Orig file:
v2.2.9/linux/fs/ncpfs/inode.c
- Orig date:
Wed Apr 28 11:37:31 1999
diff -u --recursive --new-file v2.2.9/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -346,11 +346,12 @@
GFP_KERNEL);
if (server == NULL)
goto out_no_server;
+ memset(server, 0, sizeof(*server));
NCP_SBP(sb) = server;
server->ncp_filp = ncp_filp;
server->lock = 0;
- server->wait = NULL;
+ sema_init(&server->sem, 1);
server->packet = NULL;
server->buffer_size = 0;
server->conn_status = 0;
@@ -687,7 +688,7 @@
if ((result = ncp_make_open(inode, O_RDWR)) < 0) {
return -EACCES;
}
- ncp_write(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle,
+ ncp_write_kernel(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle,
attr->ia_size, 0, "", &written);
/* According to ndir, the changes only take effect after
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)