Skip to content
Commit 9984d1b5 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 4dff5c7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment