Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Linux-Kernel Archive: [PATCH 5.10 076/172] mips: cpc: Fix refcount leak in mips_cpc_default_phys_base [PATCH 5.10 076/172] mips: cpc: Fix refcount leak in mips_cpc_default_phys_base From: Greg Kroah-Hartman Date: Mon Jun 13 2022 - 08:46:02 EST Next message: Greg Kroah-Hartman: "[PATCH 5.10 134/172] watchdog: wdat_wdt: Stop watchdog when rebooting the system" Previous message: Mark Brown: "Re: [PATCH 3/4] regulator: rt5120: Add PMIC regulator support" In reply to: Greg Kroah-Hartman: "[PATCH 5.10 138/172] ceph: allow ceph.dir.rctime xattr to be updatable" Next in thread: Greg Kroah-Hartman: "[PATCH 5.10 134/172] watchdog: wdat_wdt: Stop watchdog when rebooting the system" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] From: Gong Yuanjun [ Upstream commit 4107fa700f314592850e2c64608f6ede4c077476 ] Add the missing of_node_put() to release the refcount incremented by of_find_compatible_node(). Signed-off-by: Gong Yuanjun Reviewed-by: Serge Semin Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/mips-cpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/mips-cpc.c b/arch/mips/kernel/mips-cpc.c index 8d2535123f11..d005be84c482 100644 --- a/arch/mips/kernel/mips-cpc.c +++ b/arch/mips/kernel/mips-cpc.c @@ -27,6 +27,7 @@ phys_addr_t __weak mips_cpc_default_phys_base(void) cpc_node = of_find_compatible_node(of_root, NULL, "mti,mips-cpc"); if (cpc_node) { err = of_address_to_resource(cpc_node, 0, &res); + of_node_put(cpc_node); if (!err) return res.start; } -- 2.35.1 Next message: Greg Kroah-Hartman: "[PATCH 5.10 134/172] watchdog: wdat_wdt: Stop watchdog when rebooting the system" Previous message: Mark Brown: "Re: [PATCH 3/4] regulator: rt5120: Add PMIC regulator support" In reply to: Greg Kroah-Hartman: "[PATCH 5.10 138/172] ceph: allow ceph.dir.rctime xattr to be updatable" Next in thread: Greg Kroah-Hartman: "[PATCH 5.10 134/172] watchdog: wdat_wdt: Stop watchdog when rebooting the system" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]