ALSA: dummy: Properly shutdown the systimer at freeing

Add timer_shutdown_sync() call at the free callback for systimer
backend, in order to make sure that we can release the resources.

This is only for hardening, and there shouldn't be any actual issue
that requires this change for now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260720135356.1779857-4-tiwai@suse.de
This commit is contained in:
Takashi Iwai 2026-07-20 15:53:54 +02:00
parent ac3335d7b4
commit 260fc7a0fe

View File

@ -350,7 +350,10 @@ static int dummy_systimer_create(struct snd_pcm_substream *substream)
static void dummy_systimer_free(struct snd_pcm_substream *substream)
{
kfree(substream->runtime->private_data);
struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
timer_shutdown_sync(&dpcm->timer);
kfree(dpcm);
}
static const struct dummy_timer_ops dummy_systimer_ops = {