From: Jonathan Cameron <jic23@kernel.org>
To: Liang He <windhl@126.com>
Cc: lars@metafoo.de, Michael.Hennerich@analog.com,
linux-iio@vger.kernel.org, Jonathan.Cameron@huawei.com
Subject: Re: [PATCH] iio: dac: ad5755: Add missing fwnode_handle_put()
Date: Sat, 1 Apr 2023 16:42:24 +0100 [thread overview]
Message-ID: <20230401164224.773a04ad@jic23-huawei> (raw)
In-Reply-To: <20230322035627.1856421-1-windhl@126.com>
On Wed, 22 Mar 2023 11:56:27 +0800
Liang He <windhl@126.com> wrote:
> In ad5755_parse_fw(), we should add fwnode_handle_put()
> when break out of the iteration device_for_each_child_node()
> as it will automatically increase and decrease the refcounter.
>
> Fixes: 3ac27afefd5d ("iio:dac:ad5755: Switch to generic firmware properties and drop pdata")
> Signed-off-by: Liang He <windhl@126.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
Jonathan
> ---
> drivers/iio/dac/ad5755.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c
> index beadfa938d2d..404865e35460 100644
> --- a/drivers/iio/dac/ad5755.c
> +++ b/drivers/iio/dac/ad5755.c
> @@ -802,6 +802,7 @@ static struct ad5755_platform_data *ad5755_parse_fw(struct device *dev)
> return pdata;
>
> error_out:
> + fwnode_handle_put(pp);
> devm_kfree(dev, pdata);
> return NULL;
> }
prev parent reply other threads:[~2023-04-01 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 3:56 [PATCH] iio: dac: ad5755: Add missing fwnode_handle_put() Liang He
2023-04-01 15:42 ` Jonathan Cameron [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=20230401164224.773a04ad@jic23-huawei \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=Michael.Hennerich@analog.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=windhl@126.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