From: Cyril Roelandt Date: Sun, 11 Nov 2012 20:49:30 +0000 (+0100) Subject: iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show(). X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b334b64862efd0eee8d07f2faabbe4b56ee974cd;p=openwrt%2Fstaging%2Fblogic.git iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show(). Call to d_find_alias() needs a corresponding dput(). Signed-off-by: Cyril Roelandt Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index a649f146d17b..c0f7a4266263 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1054,6 +1054,7 @@ static int smmu_debugfs_stats_show(struct seq_file *s, void *v) stats[i], val, offs); } seq_printf(s, "\n"); + dput(dent); return 0; }