summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-12-17 07:41:48 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-01-12 20:02:44 -0500
commitd93e34faf924bd98f158712d63085662e648e389 (patch)
treeaeff9b974f175497dfb1849cc9647dae5ae6546f /drivers/staging
parent94b77bd86f8ad458fa7870def78ec3a8a7caa986 (diff)
pohmelfs: double-free and leak
wrong dentry dropped... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/pohmelfs/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pohmelfs/net.c b/drivers/staging/pohmelfs/net.c
index 9279897ff161..b2e918622088 100644
--- a/drivers/staging/pohmelfs/net.c
+++ b/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);