From: Cyril Roelandt <tipecaml@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org,
Cyril Roelandt <tipecaml@gmail.com>,
joerg.roedel@amd.com, hdoyu@nvidia.com, swarren@nvidia.com
Subject: [PATCH 2/3] iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show().
Date: Sun, 11 Nov 2012 21:49:30 +0100 [thread overview]
Message-ID: <1352666971-13551-3-git-send-email-tipecaml@gmail.com> (raw)
In-Reply-To: <1352666971-13551-1-git-send-email-tipecaml@gmail.com>
Call to d_find_alias() needs a corresponding dput().
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
drivers/iommu/tegra-smmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 4167863..4252d74 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -1052,6 +1052,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;
}
--
1.7.10.4
next prev parent reply other threads:[~2012-11-11 20:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-11 20:49 [PATCH 0/3] Use dput() after d_find_alias() Cyril Roelandt
2012-11-11 20:49 ` [PATCH 1/3] Coccinelle: Add api/d_find_alias.cocci Cyril Roelandt
2012-11-11 20:49 ` Cyril Roelandt [this message]
2012-11-12 7:39 ` [PATCH 2/3] iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show() Hiroshi Doyu
2012-11-17 12:26 ` Joerg Roedel
2012-11-11 20:49 ` [PATCH 3/3] ceph: fix dentry reference leak in ceph_encode_fh() Cyril Roelandt
2012-11-20 16:21 ` Alex Elder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352666971-13551-3-git-send-email-tipecaml@gmail.com \
--to=tipecaml@gmail.com \
--cc=hdoyu@nvidia.com \
--cc=joerg.roedel@amd.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=swarren@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome