Re: [PATCH v2] ALSA: hda: intel: Don't free card in the probe work
From: Takashi Iwai
Date: Tue Oct 13 2026 - 03:04:11 EST
On Mon, 12 Oct 2026 18:28:16 +0200,
Ali Ahmet Memiş wrote:
>
> If the delayed probe fails, azx_probe_work() frees the card and clears
> the drvdata. azx_remove() reads the card before it waits for the probe
> work with cancel_delayed_work_sync() so when the device is removed while
> the probe work is running, it frees the card again after the work has
> already freed it.
>
> Only disconnect the card in the work so that its slot is released right
> away and leave freeing it to azx_remove().
>
> Fixes: 39173303c838 ("ALSA: hda: Free card instance properly at probe errors")
> Reported-by: syzbot+40b06a86af225236fdb4@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=40b06a86af225236fdb4
> Signed-off-by: Ali Ahmet Memiş <aliamemis@xxxxxxxxxxx>
Applied to for-next branch now. Thanks.
Takashi