]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] nfsd: missing dget()
authorAndrew Morton <akpm@osdl.org>
Sat, 29 May 2004 03:59:39 +0000 (20:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 03:59:39 +0000 (20:59 -0700)
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: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/vfs.c

index bd4ff828074eee72bedc07747bd007f7d1e3f1f9..a252cac5a6f32dceaa8b169a6e2d4508fb8b4cdc 100644 (file)
@@ -899,7 +899,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
                        goto out;
        } else {
                /* called from nfsd_proc_create */
-               dchild = resfhp->fh_dentry;
+               dchild = dget(resfhp->fh_dentry);
                if (!fhp->fh_locked) {
                        /* not actually possible */
                        printk(KERN_ERR