Commit b334b64862efd0eee8d07f2faabbe4b56ee974cd

Authored by Cyril Roelandt
Committed by Joerg Roedel
1 parent e41105687b

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 <tipecaml@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/iommu/tegra-smmu.c
... ... @@ -1054,6 +1054,7 @@
1054 1054 stats[i], val, offs);
1055 1055 }
1056 1056 seq_printf(s, "\n");
  1057 + dput(dent);
1057 1058  
1058 1059 return 0;
1059 1060 }