mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02: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:
parent
dde75ff0f6
commit
764e7ed16d
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user