]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: timer: Fix the breakage of slave link open
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2019 17:36:42 +0000 (18:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2019 17:37:06 +0000 (18:37 +0100)
commitcd9149b1c3450601f552842c4f43cfc8d1131e75
tree56cbb236120a749c6533cb735f4caa3a7852bb69
parent35566fbb0ff1ae311c8fb1b85f86c40c425eda71
ALSA: timer: Fix the breakage of slave link open

A silly mistake was made while applying the fix for potential races in
commit 3199b21b0adf ("ALSA: timer: Fix possible race at assigning a
timer instance"): when a slave PCM is opened and succeeds, it doesn't
return but proceeds to the master timer open code instead.  Plug the
hole and beautify a bit.

Fixes: 3199b21b0adf ("ALSA: timer: Fix possible race at assigning a timer instance")
Reported-by: syzbot+4476917c053f60112c99@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20191111173642.6093-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c