From: Al Viro Date: Fri, 17 Dec 2010 12:41:48 +0000 (-0500) Subject: pohmelfs: double-free and leak X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d93e34faf924bd98f158712d63085662e648e389;p=openwrt%2Fstaging%2Fblogic.git pohmelfs: double-free and leak wrong dentry dropped... Signed-off-by: Al Viro --- 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);