ALSA: line6: Fix missing error handling in line6_pcm_acquire()
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2015 12:00:03 +0000 (13:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 06:20:40 +0000 (07:20 +0100)
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pcm.c

index 8a6059adef69db8918feaf799934339b0e5b609b..826158fe914930d91eacd718e97fead611a8a697 100644 (file)
@@ -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;