]> git.hungrycats.org Git - linux/commitdiff
[PATCH] d_alloc_root() fixes: afs
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 4 Mar 2004 05:21:52 +0000 (21:21 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 4 Mar 2004 05:21:52 +0000 (21:21 -0800)
 - useless dput(NULL) on failure exit (would be a double-free if
   we ever got there with non-NULL dentry).

fs/afs/super.c

index 0b4e216b53b0c9933bd28904016d982564cae765..6e225ff8564cc9a0472deb5b7d685d5bbf93d69a 100644 (file)
@@ -280,7 +280,6 @@ static int afs_fill_super(struct super_block *sb, void *data, int silent)
        return 0;
 
  error:
-       dput(root);
        iput(inode);
        afs_put_volume(as->volume);
        kfree(as);