From 5343ecf4e5c94aecdd6a859b76c125c3544865d1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 23 Jan 2015 14:34:42 +0100 Subject: [PATCH] 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-format-patch failed