mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()
[ Upstream commit e941712ccc
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4521f32a66
commit
5279be2b9c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue