diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-02 17:35:30 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-07 10:25:53 +0200 |
commit | d7f910bfedd863d13ea320030fe98e42d0938ed5 (patch) | |
tree | 51ec98386371c6adead80f99ee88a42ccb6dbb19 /sound/core/pcm_native.c | |
parent | 890e2cb5d184629702a2c1a1e9631f9f64523c65 (diff) |
ALSA: timer: Wrap with spinlock for queue access
For accessing the snd_timer_user queue indices, we take tu->qlock.
But it's forgotten in a couple of places.
The one in snd_timer_user_params() should be safe without the
spinlock as the timer is already stopped. But it's better for
consistency.
The one in poll is just a read-out, so it's not inevitably needed, but
it'd be good to make the result consistent, too.
Tested-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_native.c')
0 files changed, 0 insertions, 0 deletions