pohmelfs: double-free and leak
wrong dentry dropped... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user