From: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
To: Jyoti Gupta <jyoti@linux.ibm.com>, linuxppc-dev@lists.ozlabs.org
Cc: maddy@linux.ibm.com, npiggin@gmail.com, chleroy@kernel.org,
sshegde@linux.ibm.com, oss@buserror.net,
Sourabh Jain <sourabhjain@linux.ibm.com>
Subject: Re: [PATCH v3] powerpc: Fix missing of_node_put() calls
Date: Sun, 22 Nov 2026 08:21:58 +0530 [thread overview]
Message-ID: <y0alk27l.ritesh.list@gmail.com> (raw)
In-Reply-To: <20261120110648.333973-1-jyoti@linux.ibm.com>
Jyoti Gupta <jyoti@linux.ibm.com> writes:
> Several PowerPC code paths acquire device tree node references but fail
> to drop them on error paths, early exits.
>
> Add the missing of_node_put() calls across PowerPC platform to ensure
> proper device node reference counting.
>
> These changes prevent device node reference leaks and improve overall
> resource management in PowerPC code.
>
> Suggested-by: Sourabh Jain <sourabhjain@linux.ibm.com>
> Signed-off-by: Jyoti Gupta <jyoti@linux.ibm.com>
> ---
> v2 -> v3:
> - powermac/pci.c: Dropped __maybe_unused from the ht declaration in
> pmac_pci_init(), as ht is now used on both PPC32 and PPC64.
> - kexec/file_load_64.c: Use "goto out" for the -EOVERFLOW case in
> add_usable_mem_property() so the common of_node_put() cleanup is used,
> instead of adding a separate of_node_put() before the return.
> - Link to v2 - https://lore.kernel.org/all/20261119075827.45823-1-jyoti@linux.ibm.com/
>
Thanks for addressing these review comments.
The patch now LGTM. Please feel free to add:
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
next prev parent reply other threads:[~2026-11-22 2:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 11:06 [PATCH v3] powerpc: Fix missing of_node_put() calls Jyoti Gupta
2026-11-22 2:51 ` Ritesh Harjani [this message]
2026-11-30 12:26 ` Madhavan Srinivasan
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=y0alk27l.ritesh.list@gmail.com \
--to=ritesh.list@gmail.com \
--cc=chleroy@kernel.org \
--cc=jyoti@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=oss@buserror.net \
--cc=sourabhjain@linux.ibm.com \
--cc=sshegde@linux.ibm.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox