From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Jiawen Liu <1298662399@qq.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Vinod Koul <vkoul@kernel.org>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Jizhou Tong <fqwqf@fqwqf.xyz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soundwire: fail slave probe if IRQ cleanup cannot be registered
Date: Wed, 2 Dec 2026 10:40:14 +0000 [thread overview]
Message-ID: <aw/1jiHGOzi2VaJn@opensource.cirrus.com> (raw)
In-Reply-To: <tencent_9CA73AC0C75FAB4ACEFAB4A27A4823DD4C07@qq.com>
On Mon, Nov 30, 2026 at 07:54:28PM +0000, Jiawen Liu wrote:
> Hi Charles,
>
> The original code used devm_add_action_or_reset(), which calls the
> action if registration fails. This patch switches to devm_add_action().
> If the devres allocation fails, that helper returns -ENOMEM without
> calling the action.
>
> At that point the new mapping is still in the local variable irq.
> slave->irq is only set after registration succeeds. Dropping
> irq_dispose_mapping(irq) here would leak the mapping, so I'd keep it.
Thanks, I had missed that :-)
Thanks,
Charles
prev parent reply other threads:[~2026-12-02 10:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:48 [PATCH] soundwire: fail slave probe if IRQ cleanup cannot be registered Jiawen Liu
2026-11-30 10:18 ` Pierre-Louis Bossart
2026-11-30 15:50 ` Charles Keepax
2026-11-30 19:54 ` Jiawen Liu
2026-12-01 4:09 ` Jizhou Tong
2026-12-02 10:40 ` Charles Keepax [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=aw/1jiHGOzi2VaJn@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=1298662399@qq.com \
--cc=fqwqf@fqwqf.xyz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=vkoul@kernel.org \
--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 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.