]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2026 11:50:54 +0000 (13:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2026 07:36:28 +0000 (09:36 +0200)
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@suse.de>
Link: https://patch.msgid.link/20260609115100.806869-3-tiwai@suse.de
sound/core/timer.c

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