diff options
| author | Takashi Iwai <tiwai@suse.de> | 2016-02-08 17:26:58 +0100 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2016-02-25 10:34:54 +0000 |
| commit | d2fe56f9b3f8bace0b645d6c6634eba854b6b7f0 (patch) | |
| tree | b43cca8f4f7bd30c7c1d569ba24cab3113120add /include/linux/timerfd.h | |
| parent | c116fbe0a0d23659d39ff77a9b33afb52153423a (diff) | |
ALSA: timer: Fix race at concurrent reads
commit 4dff5c7b7093b19c19d3a100f8a3ad87cb7cd9e7 upstream.
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.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/timerfd.h')
0 files changed, 0 insertions, 0 deletions
