Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74174
b: refs/heads/master
c: f16c960
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Trond Myklebust committed Nov 26, 2007
1 parent e392a35 commit 727cf93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfcb43ff7ce28f347a39e1a7519e01850b588718
refs/heads/master: f16c960332b125491178fc2da7ea7893b0d65d05
6 changes: 4 additions & 2 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,10 +1054,11 @@ static int nfs_validate_mount_data(void *options,
{
struct nfs_mount_data *data = (struct nfs_mount_data *)options;

memset(args, 0, sizeof(*args));

if (data == NULL)
goto out_no_data;

memset(args, 0, sizeof(*args));
args->flags = (NFS_MOUNT_VER3 | NFS_MOUNT_TCP);
args->rsize = NFS_MAX_FILE_IO_SIZE;
args->wsize = NFS_MAX_FILE_IO_SIZE;
Expand Down Expand Up @@ -1536,10 +1537,11 @@ static int nfs4_validate_mount_data(void *options,
struct nfs4_mount_data *data = (struct nfs4_mount_data *)options;
char *c;

memset(args, 0, sizeof(*args));

if (data == NULL)
goto out_no_data;

memset(args, 0, sizeof(*args));
args->rsize = NFS_MAX_FILE_IO_SIZE;
args->wsize = NFS_MAX_FILE_IO_SIZE;
args->timeo = 600;
Expand Down

0 comments on commit 727cf93

Please sign in to comment.