[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160905164436.415184813@linuxfoundation.org>
Date: Mon, 5 Sep 2016 18:45:13 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Stefan Hajnoczi <stefanha@...il.com>,
Andrej Krutak <dev@...ree.sk>, Takashi Iwai <tiwai@...e.de>
Subject: [PATCH 4.7 137/143] ALSA: line6: Remove double line6_pcm_release() after failed acquire.
4.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andrej Krutak <dev@...ree.sk>
commit 7e4379eae0e31994ea645db1d13006ea8e5ce539 upstream.
If there's an error, pcm is released in line6_pcm_acquire already.
Fixes: 247d95ee6dd2 ('ALSA: line6: Handle error from line6_pcm_acquire()')
Reviewed-by: Stefan Hajnoczi <stefanha@...il.com>
Signed-off-by: Andrej Krutak <dev@...ree.sk>
Signed-off-by: Takashi Iwai <tiwai@...e.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
sound/usb/line6/pcm.c | 1 -
1 file changed, 1 deletion(-)
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -55,7 +55,6 @@ static int snd_line6_impulse_volume_put(
err = line6_pcm_acquire(line6pcm, LINE6_STREAM_IMPULSE);
if (err < 0) {
line6pcm->impulse_volume = 0;
- line6_pcm_release(line6pcm, LINE6_STREAM_IMPULSE);
return err;
}
} else {
Powered by blists - more mailing lists