[PATCH 2/3] Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"

From: Takashi Iwai

Date: Tue Jun 09 2026 - 07:57:03 EST


This reverts commit 053a401b592be424fea9d57c789f66cd5d8cec11.

With the change of the timer object lifecycle with kref, this
temporary workaround is no longer needed.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
---
sound/core/timer.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/sound/core/timer.c b/sound/core/timer.c
index 6d8fc1ee29f5..6baa63a3bad0 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1861,7 +1861,6 @@ static int snd_timer_user_params(struct file *file,
struct snd_timer_params params;
int err;

- guard(mutex)(&register_mutex);
tu = file->private_data;
if (!tu->timeri)
return -EBADFD;
--
2.54.0