]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: aloop - Close races at restarting the stream
authorTakashi Iwai <tiwai@suse.de>
Sun, 21 Oct 2012 08:53:14 +0000 (10:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 21 Oct 2012 08:53:14 +0000 (10:53 +0200)
commitdd4d8d983793f1a227e7107d9376f2e15588ed62
treed89070175331a427142d15da6a0d2266e9f2e69f
parentc93825847c7b0c8919f1fa7c14c1f48de540cf5c
ALSA: aloop - Close races at restarting the stream

There are small races opened in the check of running bit and the timer
lock.  Instead of adding yet more flag, just protect the whole racy
codes with the existing cable->lock.  As a bonus, we can get rid of
timer_lock now.

Reported-and-tested-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/aloop.c