From: Al Viro Date: Fri, 17 Dec 2010 12:41:48 +0000 (-0500) Subject: pohmelfs: double-free and leak X-Git-Tag: upstream/snapshot3+hdmi~11902^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d93e34faf924bd98f158712d63085662e648e389;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 9279897..b2e9186 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);