From: Takashi Iwai Date: Wed, 10 Feb 2016 10:53:30 +0000 (+0100) Subject: ALSA: timer: Protect the whole snd_timer_close() with open race X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6a1f3005929d1a7ed35d683ba4ce2a12aad7395;p=pandora-kernel.git ALSA: timer: Protect the whole snd_timer_close() with open race commit 9984d1b5835ca29fc7025186a891ee7398d21cc7 upstream. 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 [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed