iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show().
authorCyril Roelandt <tipecaml@gmail.com>
Sun, 11 Nov 2012 20:49:30 +0000 (21:49 +0100)
committerJoerg Roedel <joro@8bytes.org>
Sat, 17 Nov 2012 12:25:40 +0000 (13:25 +0100)
Call to d_find_alias() needs a corresponding dput().

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/tegra-smmu.c

index a649f146d17bad0b62d15a1d174c57147a9a2a2f..c0f7a42662635a288fc8c98fabe3d8f1b35f1141 100644 (file)
@@ -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;
 }