]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mips: cpc: Fix refcount leak in mips_cpc_default_phys_base
authorGong Yuanjun <ruc_gongyuanjun@163.com>
Thu, 7 Apr 2022 04:26:57 +0000 (12:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:34 +0000 (16:59 +0200)
commit961ee8a6eeef4632a215d995d837b204f8c7c2d4
treecec42e929cbdf55598b168f750f683d834ce2b61
parent7c9719433bc9f02b7bd69545162d98b6a3c61d6e
mips: cpc: Fix refcount leak in mips_cpc_default_phys_base

[ Upstream commit 4107fa700f314592850e2c64608f6ede4c077476 ]

Add the missing of_node_put() to release the refcount incremented
by of_find_compatible_node().

Signed-off-by: Gong Yuanjun <ruc_gongyuanjun@163.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/kernel/mips-cpc.c