Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"

JIRA: https://issues.redhat.com/browse/RHEL-183295

commit dde75ff0f651182b671da700441406b8f9de3984
Author: Takashi Iwai <tiwai@suse.de>
Date: Tue Jun 9 13:50:54 2026 +0200

    Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"

    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

Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
Jaroslav Kysela
2026-06-23 17:46:16 +02:00
parent dbeff6801a
commit e8da4c509a
-1
View File
@@ -1811,7 +1811,6 @@ static int snd_timer_user_params(struct file *file,
struct snd_timer *t;
int err;
guard(mutex)(&register_mutex);
tu = file->private_data;
if (!tu->timeri)
return -EBADFD;