From: Takashi Iwai <tiwai@suse.de>
To: linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Kyle Zeng <kylebot@openai.com>
Subject: [PATCH 3/3] ALSA: timer: Disable work at freeing timer object
Date: Tue, 9 Jun 2026 13:50:55 +0200 [thread overview]
Message-ID: <20260609115100.806869-4-tiwai@suse.de> (raw)
In-Reply-To: <20260609115100.806869-1-tiwai@suse.de>
There might be a pending work at freeing a timer object, hence clean
it up properly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/core/timer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 6baa63a3bad0..a3ae5416485e 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -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;
}
--
2.54.0
prev parent reply other threads:[~2026-06-09 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 11:50 [PATCH 0/3] ALSA: more fixes for timer Takashi Iwai
2026-06-09 11:50 ` [PATCH 1/3] ALSA: timer: Manage timer object with kref Takashi Iwai
2026-06-09 11:50 ` [PATCH 2/3] Revert "ALSA: timer: Fix UAF at snd_timer_user_params()" Takashi Iwai
2026-06-09 11:50 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260609115100.806869-4-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=kylebot@openai.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®