Commit da9a37d7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] nfsd: missing dget()

From: Neil Brown <neilb@cse.unsw.edu.au>

The recentish change to fh_compose not consuming a reference to the passed
dentries missed this needed dget.
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 81e95d97
...@@ -899,7 +899,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, ...@@ -899,7 +899,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
goto out; goto out;
} else { } else {
/* called from nfsd_proc_create */ /* called from nfsd_proc_create */
dchild = resfhp->fh_dentry; dchild = dget(resfhp->fh_dentry);
if (!fhp->fh_locked) { if (!fhp->fh_locked) {
/* not actually possible */ /* not actually possible */
printk(KERN_ERR printk(KERN_ERR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment