]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: timer: Disable work at freeing timer object
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2026 11:50:55 +0000 (13:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2026 07:36:28 +0000 (09:36 +0200)
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
sound/core/timer.c

index 6baa63a3bad0c3e9e1ab55611985d2ed1c7188ee..a3ae5416485ecae2a570e877d3811b43a4f0e128 100644 (file)
@@ -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;
 }