diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-23 07:00:03 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 01:20:40 -0500 |
commit | eab22e4053d47250ef755deb8592e0834eb409da (patch) | |
tree | 1579b2f69e8d895a16a3783a046fcb4113353113 /sound/usb | |
parent | bc518ba4ccb487ef52e418c3ff68050cf07b3bc0 (diff) |
ALSA: line6: Fix missing error handling in line6_pcm_acquire()
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/line6/pcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
133 | */ | 133 | */ |
134 | if (line6pcm->active_urb_in | line6pcm->unlink_urb_in) { | 134 | if (line6pcm->active_urb_in | line6pcm->unlink_urb_in) { |
135 | dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n"); | 135 | dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n"); |
136 | return -EBUSY; | 136 | err = -EBUSY; |
137 | goto pcm_acquire_error; | ||
137 | } | 138 | } |
138 | 139 | ||
139 | line6pcm->count_in = 0; | 140 | line6pcm->count_in = 0; |