Home
last modified time | relevance | path

Searched hist:"4 dff5c7b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/core/
H A Dtimer.c4dff5c7b Mon Feb 08 10:26:58 CST 2016 Takashi Iwai <tiwai@suse.de> ALSA: timer: Fix race at concurrent reads

snd_timer_user_read() has a potential race among parallel reads, as
qhead and qused are updated outside the critical section due to
copy_to_user() calls. Move them into the critical section, and also
sanitize the relevant code a bit.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
4dff5c7b Mon Feb 08 10:26:58 CST 2016 Takashi Iwai <tiwai@suse.de> ALSA: timer: Fix race at concurrent reads

snd_timer_user_read() has a potential race among parallel reads, as
qhead and qused are updated outside the critical section due to
copy_to_user() calls. Move them into the critical section, and also
sanitize the relevant code a bit.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>