summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-08-27 17:33:00 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-09-01 16:14:38 +0200
commitdeee9369b993b52a8e2f25683b4a67be7a65e8ae (patch)
treed5d4f56c77ac21bc4f693ceaacdd3b6c87a00e56 /fs
parentNFSv4: Fix a typo in _nfs4_do_open_reclaim (diff)
downloadlinux-deee9369b993b52a8e2f25683b4a67be7a65e8ae.tar.xz
linux-deee9369b993b52a8e2f25683b4a67be7a65e8ae.zip
NFSv4: Ensure that we pass the correct dentry to nfs4_intent_set_file
This patch fixes an Oops that was reported by Gabriel Barazer. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 036d8625b4f9..4b90e17555a9 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1434,7 +1434,7 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
}
res = d_add_unique(dentry, igrab(state->inode));
if (res != NULL)
- dentry = res;
+ path.dentry = res;
nfs4_intent_set_file(nd, &path, state);
return res;
}