Skip to content

Commit

Permalink
pohmelfs: double-free and leak
Browse files Browse the repository at this point in the history
wrong dentry dropped...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 13, 2011
1 parent 94b77bd commit d93e34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/pohmelfs/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d93e34f

Please sign in to comment.