From: Takashi Iwai <tiwai@suse.de>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: johannes@sipsolutions.net, perex@perex.cz, tiwai@suse.de,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v2] ALSA: aoa: Fix codec unregister handling
Date: Tue, 01 Dec 2026 08:56:11 +0100 [thread overview]
Message-ID: <8733sh1lk4.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261128085235.2984-1-sreekuttan2156239@gmail.com>
On Sat, 28 Nov 2026 09:52:35 +0100,
Sreeraj S Kurup wrote:
>
> Fix aoa_codec_unregister() to use the codec's own fabric pointer
> when removing a codec.
>
> Previously, the function checked the global fabric pointer instead
> of codec->fabric. This could call the fabric's remove_codec()
> callback for a codec that was never attached to the fabric.
>
> The function also called module_put() unconditionally, even when
> attach_codec_to_fabric() had not acquired a module reference.
> This could cause an incorrect module reference count.
>
> Use aoa_fabric_unlink_codec() to detach an attached codec. This
> helper calls exit(), remove_codec(), and module_put() and clears
> codec->fabric. These operations are now performed only when the
> codec is actually attached to a fabric.
>
> This also prevents releasing the module reference a second time
> when codec initialization fails and the attach path has already
> cleaned up.
>
> Fixes: f3d9478b2ce4 ("[ALSA] snd-aoa: add snd-aoa")
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Applied to for-next branch. Thanks.
Takashi
next prev parent reply other threads:[~2026-12-01 7:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 8:10 [PATCH] aoa: Fix codec unregister handling Sreeraj S Kurup
2026-11-28 8:17 ` sashiko-bot
2026-11-28 8:52 ` [PATCH v2] ALSA: " Sreeraj S Kurup
2026-12-01 7:56 ` Takashi Iwai [this message]
2026-12-01 12:49 ` Sreeraj S Kurup
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=8733sh1lk4.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=perex@perex.cz \
--cc=sreekuttan2156239@gmail.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.