aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-03-31 15:01:58 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-04-08 21:06:53 -0400
commit66d3aac04175c35564cc5982934b68bc4f89a76d (patch)
tree0b71ad81894f9d0beb0384691d50db71788f5504 /fs
parentSUNRPC: don't call flush_dcache_page() with an invalid pointer (diff)
downloadlinux-dev-66d3aac04175c35564cc5982934b68bc4f89a76d.tar.xz
linux-dev-66d3aac04175c35564cc5982934b68bc4f89a76d.zip
NFS: initialize flags field in nfs_open_context
The nfs_open_context struct had a "flags" field added recently, but the allocator isn't initializing it. It also looks like the allocator isn't initializing the mode or list either, but they seem to be overwritten by the caller, so that's less of an issue. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index a4c7cf2bff3a..6f88d7c77ac9 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -506,6 +506,7 @@ static struct nfs_open_context *alloc_nfs_open_context(struct vfsmount *mnt, str
ctx->cred = get_rpccred(cred);
ctx->state = NULL;
ctx->lockowner = current->files;
+ ctx->flags = 0;
ctx->error = 0;
ctx->dir_cookie = 0;
atomic_set(&ctx->count, 1);