From: Takashi Iwai Date: Fri, 23 Jan 2015 13:34:42 +0000 (+0100) Subject: ALSA: line6: Fix the error recovery in line6_pcm_acquire() X-Git-Tag: fixes-v4.0-rc1~146^2~35^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5343ecf4e5c94aecdd6a859b76c125c3544865d1;p=pandora-kernel.git ALSA: line6: Fix the error recovery in line6_pcm_acquire() line6_pcm_acquire() tries to restore the newly obtained resources at the error path. But some flags aren't recorded and released properly when the corresponding buffer is already present. These bits have to be cleared in the error recovery, too. Also, "flags_final" can be initialized to zero since we pass only the subset of "channels" bits. Tested-by: Chris Rorvick Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed