From: Vinod Koul <vkoul@kernel.org>
To: Xiangwu Lai <laixiangwu@cmss.chinamobile.com>
Cc: yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.dev,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] soundwire: mipi_disco: Put fwnode on property array read errors
Date: Tue, 24 Nov 2026 14:37:40 +0530 [thread overview]
Message-ID: <awVT3MHdgD3MAxt3@parshuram> (raw)
In-Reply-To: <20261112060943.1916-1-laixiangwu@cmss.chinamobile.com>
On 12-11-26, 14:09, Xiangwu Lai wrote:
> sdw_master_read_prop() and sdw_slave_read_dpn() take a fwnode
> reference with device_get_named_child_node() and already release it
> on the -ENOMEM and success paths. However, the error paths added
> for the property array reads jump straight out without dropping the
> reference, leaking it on every failed read. The lane-list support
> in sdw_slave_read_dpn() is even missing the put on its -ENOMEM path,
> unlike the other array allocations in the same function.
>
> Release the reference on those error paths as well, matching the
> existing -ENOMEM handling in the same functions.
This fails for me on on the current code - sdw/next. Please rebase
--
~Vinod
prev parent reply other threads:[~2026-11-24 9:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 6:09 Xiangwu Lai
2026-11-12 8:10 ` Pierre-Louis Bossart
2026-11-24 9:07 ` Vinod Koul [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=awVT3MHdgD3MAxt3@parshuram \
--to=vkoul@kernel.org \
--cc=laixiangwu@cmss.chinamobile.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=yung-chuan.liao@linux.intel.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
all inboxes | Powered by JetHome®