mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
ALSA: timer: Disable work at freeing timer object
There might be a pending work at freeing a timer object, hence clean it up properly. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260609115100.806869-4-tiwai@suse.de
This commit is contained in:
@@ -1045,6 +1045,8 @@ static int snd_timer_free(struct snd_timer *timer)
|
||||
list_del(&timer->device_list);
|
||||
}
|
||||
|
||||
disable_work_sync(&timer->task_work);
|
||||
|
||||
snd_timer_ref_put(timer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user