Re: [PATCH] ALSA: harmony: initialize locks before requesting IRQ
From: Takashi Iwai
Date: Mon Aug 31 2026 - 04:11:23 EST
On Sun, 30 Aug 2026 08:34:11 +0200,
Runyu Xiao wrote:
>
> snd_harmony_create() registers the IRQ before initializing h->lock and
> h->mixer_lock. A pending interrupt can invoke the handler while these
> locks are uninitialized.
>
> Initialize both locks before requesting the IRQ so the handler always
> sees valid lock state.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: Codex:GPT-5
> Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>
Applied now. Thanks.
Takashi