From: Takashi Iwai Date: Fri, 23 Jan 2015 12:00:03 +0000 (+0100) Subject: ALSA: line6: Fix missing error handling in line6_pcm_acquire() X-Git-Tag: v4.0-rc1~129^2~35^2~19 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=eab22e4053d47250ef755deb8592e0834eb409da;p=linux.git ALSA: line6: Fix missing error handling in line6_pcm_acquire() Tested-by: Chris Rorvick Signed-off-by: Takashi Iwai --- 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;