]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: timer: Protect the whole snd_timer_close() with open race
authorTakashi Iwai <tiwai@suse.de>
Wed, 10 Feb 2016 10:53:30 +0000 (11:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Feb 2016 11:56:07 +0000 (12:56 +0100)
commitf9b94e265cceb2e2764b9284ed0dda6c8dd83520
treeeecd67335fe1c90124b76074a12b879a33f514ee
parent3d820103abefc9f07713a05e474b99885ae7b539
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>
sound/core/timer.c