mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Erick Karanja <karanja99erick@gmail.com>
Cc: grantpeltier93@gmail.com, chiang.brian@inventec.com,
	gregkh@linuxfoundation.org, peterz@infradead.org,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hwmon: (pmbus) Fix child node reference leak on early return
Date: Sun, 12 Oct 2025 11:21:10 -0700	[thread overview]
Message-ID: <7ed7d257-4744-47a6-a86a-4da8c54e38db@roeck-us.net> (raw)
In-Reply-To: <20251012181249.359401-1-karanja99erick@gmail.com>

On Sun, Oct 12, 2025 at 09:12:49PM +0300, Erick Karanja wrote:
> In the case of an  early return, the reference to the
> child node needs to be release.
> 
> Use for_each_child_of_node_scoped to fix the issue.
> 
> Fixes: 3996187f80a0e ("hwmon: (pmbus/isl68137) add support for voltage divider on Vout")
> Signed-off-by: Erick Karanja <karanja99erick@gmail.com>

Applied.

Thanks,
Guenter

      reply	other threads:[~2025-10-12 18:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-12 18:12 Erick Karanja
2025-10-12 18:21 ` Guenter Roeck [this message]

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=7ed7d257-4744-47a6-a86a-4da8c54e38db@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=chiang.brian@inventec.com \
    --cc=grantpeltier93@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=karanja99erick@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /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

all inboxes | Powered by JetHome®