From: cgel.zte@gmail.com To: mpe@ellerman.id.au, benh@kernel.crashing.org Cc: paulus@samba.org, lv.ruyi@zte.com.cn, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Zeal Robot <zealci@zte.com.cn> Subject: [PATCH] powerpc/powernv: fix missing of_node_put in uv_init() Date: Thu, 7 Apr 2022 09:00:43 +0000 [thread overview] Message-ID: <20220407090043.2491854-1-lv.ruyi@zte.com.cn> (raw) From: Lv Ruyi <lv.ruyi@zte.com.cn> of_find_compatible_node() returns node pointer with refcount incremented, use of_node_put() on it when done. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn> --- arch/powerpc/platforms/powernv/ultravisor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powernv/ultravisor.c b/arch/powerpc/platforms/powernv/ultravisor.c index e4a00ad06f9d..67c8c4b2d8b1 100644 --- a/arch/powerpc/platforms/powernv/ultravisor.c +++ b/arch/powerpc/platforms/powernv/ultravisor.c @@ -55,6 +55,7 @@ static int __init uv_init(void) return -ENODEV; uv_memcons = memcons_init(node, "memcons"); + of_node_put(node); if (!uv_memcons) return -ENOENT; -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: cgel.zte@gmail.com To: mpe@ellerman.id.au, benh@kernel.crashing.org Cc: linuxppc-dev@lists.ozlabs.org, lv.ruyi@zte.com.cn, Zeal Robot <zealci@zte.com.cn>, paulus@samba.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/powernv: fix missing of_node_put in uv_init() Date: Thu, 7 Apr 2022 09:00:43 +0000 [thread overview] Message-ID: <20220407090043.2491854-1-lv.ruyi@zte.com.cn> (raw) From: Lv Ruyi <lv.ruyi@zte.com.cn> of_find_compatible_node() returns node pointer with refcount incremented, use of_node_put() on it when done. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn> --- arch/powerpc/platforms/powernv/ultravisor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powernv/ultravisor.c b/arch/powerpc/platforms/powernv/ultravisor.c index e4a00ad06f9d..67c8c4b2d8b1 100644 --- a/arch/powerpc/platforms/powernv/ultravisor.c +++ b/arch/powerpc/platforms/powernv/ultravisor.c @@ -55,6 +55,7 @@ static int __init uv_init(void) return -ENODEV; uv_memcons = memcons_init(node, "memcons"); + of_node_put(node); if (!uv_memcons) return -ENOENT; -- 2.25.1
next reply other threads:[~2022-04-07 9:01 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-07 9:00 cgel.zte [this message] 2022-04-07 9:00 ` [PATCH] powerpc/powernv: fix missing of_node_put in uv_init() cgel.zte 2022-05-24 11:09 ` Michael Ellerman 2022-05-24 11:09 ` Michael Ellerman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220407090043.2491854-1-lv.ruyi@zte.com.cn \ --to=cgel.zte@gmail.com \ --cc=benh@kernel.crashing.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=lv.ruyi@zte.com.cn \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ --cc=zealci@zte.com.cn \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.