diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-10 11:53:30 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-10 12:56:07 +0100 |
commit | 9984d1b5835ca29fc7025186a891ee7398d21cc7 (patch) | |
tree | eecd67335fe1c90124b76074a12b879a33f514ee /block/genhd.c | |
parent | ALSA: timer: Fix race at concurrent reads (diff) | |
download | linux-9984d1b5835ca29fc7025186a891ee7398d21cc7.tar.xz linux-9984d1b5835ca29fc7025186a891ee7398d21cc7.zip |
ALSA: timer: Protect the whole snd_timer_close() with open race
In order to make the open/close more robust, widen the register_mutex
protection over the whole snd_timer_close() function. Also, the close
procedure is slightly shuffled to be in the safer order, as well as a
few code refactoring.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions