Commit d93e34fa authored by Al Viro's avatar Al Viro

pohmelfs: double-free and leak

wrong dentry dropped...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 94b77bd8
...@@ -413,7 +413,7 @@ static int pohmelfs_readdir_response(struct netfs_state *st) ...@@ -413,7 +413,7 @@ static int pohmelfs_readdir_response(struct netfs_state *st)
if (dentry) { if (dentry) {
alias = d_materialise_unique(dentry, &npi->vfs_inode); alias = d_materialise_unique(dentry, &npi->vfs_inode);
if (alias) if (alias)
dput(dentry); dput(alias);
} }
dput(dentry); dput(dentry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment