diff mbox

[05/16] ALSA: line6: Fix missing error handling in line6_pcm_acquire()

Message ID 1422033203-23254-6-git-send-email-tiwai@suse.de (mailing list archive)
State Accepted
Commit eab22e4053d47250ef755deb8592e0834eb409da
Headers show

Commit Message

Takashi Iwai Jan. 23, 2015, 5:13 p.m. UTC
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/usb/line6/pcm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/usb/line6/pcm.c b/sound/usb/line6/pcm.c
index 8a6059adef69..826158fe9149 100644
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -133,7 +133,8 @@  int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int channels)
 		 */
 		if (line6pcm->active_urb_in | line6pcm->unlink_urb_in) {
 			dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n");
-			return -EBUSY;
+			err = -EBUSY;
+			goto pcm_acquire_error;
 		}
 
 		line6pcm->count_in = 0;