Linux-Kernel Archive: [PATCH] arch: mips: generic: Add missing of_node_put() in board-ranchu.c [PATCH] arch: mips: generic: Add missing of_node_put() in board-ranchu.c From: Liang He Date: Wed Jun 15 2022 - 10:42:30 EST Next message: Jiri Kosina: "Re: [PATCH] HID: nintendo: Set phys property of input device based on HID phys" Previous message: Paolo Bonzini: "Re: [PATCH 6/6] KVM: SEV-ES: reuse advance_sev_es_emulated_ins for OUT too" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] In ranchu_measure_hpt_freq(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_put_node() when it is not used anymore. Signed-off-by: Liang He --- arch/mips/generic/board-ranchu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/generic/board-ranchu.c b/arch/mips/generic/board-ranchu.c index a89aaad59cb1..930c45041882 100644 --- a/arch/mips/generic/board-ranchu.c +++ b/arch/mips/generic/board-ranchu.c @@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void) __func__); rtc_base = of_iomap(np, 0); + of_node_put(np); if (!rtc_base) panic("%s(): Failed to ioremap Goldfish RTC base!", __func__); -- 2.25.1 Next message: Jiri Kosina: "Re: [PATCH] HID: nintendo: Set phys property of input device based on HID phys" Previous message: Paolo Bonzini: "Re: [PATCH 6/6] KVM: SEV-ES: reuse advance_sev_es_emulated_ins for OUT too" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]