diff options
author | Liang He <windhl@126.com> | 2022-06-16 09:46:36 +0800 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-09-15 12:38:43 +0200 |
commit | e941712cccab8a96f03b5d3274159c1ed338efee (patch) | |
tree | dc21fbf4c086069a0b04f23f995ed19bcf11251b /drivers/soc | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) |
soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()
In this function, of_find_matching_node() will return a node pointer
with refcount incremented. We should use of_node_put() when the "np"
pointer is not used anymore.
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/tegra/fuse/fuse-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index b0a8405dbdb1..6542267a224d 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -568,6 +568,7 @@ static int __init tegra_init_fuse(void) np = of_find_matching_node(NULL, car_match); if (np) { void __iomem *base = of_iomap(np, 0); + of_node_put(np); if (base) { tegra_enable_fuse_clk(base); iounmap(base); |