]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Fix referred substream in snd_pcm_action_group() unlock loop
authorTakashi Iwai <tiwai@suse.de>
Mon, 13 Oct 2014 21:14:46 +0000 (23:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Oct 2014 07:14:48 +0000 (09:14 +0200)
commitdb6409e4a7d6b3999f85ea0dec80cada119d35ee
tree8b5ae452e128757cb5acea1ab3303dcc80c82530
parent4b1292733f36cb35a7aa895b2efb1d08243af445
ALSA: pcm: Fix referred substream in snd_pcm_action_group() unlock loop

In the unlock loop of snd_pcm_action_group(), the object "s" is used
as the check of nonatomic PCM, but it should be rather "s1", which is
the iterator of the loop.  This supposedly causes a kernel panic when
the substreams in operatino are linked.

Fixes: 875cdb8bafb1 ('ALSA: pcm: Allow nonatomic trigger operations')
Reported-and-tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c