Browse Source

pohmelfs: double-free and leak

wrong dentry dropped...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 14 years ago
parent
commit
d93e34faf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/pohmelfs/net.c

+ 1 - 1
drivers/staging/pohmelfs/net.c

@@ -413,7 +413,7 @@ static int pohmelfs_readdir_response(struct netfs_state *st)
 				if (dentry) {
 					alias = d_materialise_unique(dentry, &npi->vfs_inode);
 					if (alias)
-						dput(dentry);
+						dput(alias);
 				}
 
 				dput(dentry);