mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
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:
parent
ac3335d7b4
commit
260fc7a0fe
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user