diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-10 12:47:03 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-12 15:07:31 +0100 |
commit | f65e0d299807d8a11812845c972493c3f9a18e10 (patch) | |
tree | 259de0402441767fba65048fb1ee47de07618266 /block/genhd.c | |
parent | ALSA: timer: Protect the whole snd_timer_close() with open race (diff) | |
download | linux-f65e0d299807d8a11812845c972493c3f9a18e10.tar.xz linux-f65e0d299807d8a11812845c972493c3f9a18e10.zip |
ALSA: timer: Call notifier in the same spinlock
snd_timer_notify1() is called outside the spinlock and it retakes the
lock after the unlock. This is rather racy, and it's safer to move
snd_timer_notify() call inside the main spinlock.
The patch also contains a slight refactoring / cleanup of the code.
Now all start/stop/continue/pause look more symmetric and a bit better
readable.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions