]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
NFS: initialize flags field in nfs_open_context
authorJeff Layton <jlayton@redhat.com>
Mon, 31 Mar 2008 19:01:58 +0000 (15:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Apr 2008 01:06:53 +0000 (21:06 -0400)
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>
fs/nfs/inode.c

index a4c7cf2bff3a61131d1de68dbb770833e3c8e124..6f88d7c77ac98e1b4bdb5a8f0b347227c271d5ac 100644 (file)
@@ -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);