Skip to content

Commit

Permalink
NFSv4: Ensure that we pass the correct dentry to nfs4_intent_set_file
Browse files Browse the repository at this point in the history
This patch fixes an Oops that was reported by Gabriel Barazer.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 1, 2007
1 parent 65bbf6b commit deee936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit deee936

Please sign in to comment.