diff options
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index d929ced58ec3..92e72910792b 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -1290,8 +1290,8 @@ static int usbvision_radio_open(struct inode *inode, struct file *file) | |||
1290 | errCode = usbvision_set_alternate(usbvision); | 1290 | errCode = usbvision_set_alternate(usbvision); |
1291 | if (errCode < 0) { | 1291 | if (errCode < 0) { |
1292 | usbvision->last_error = errCode; | 1292 | usbvision->last_error = errCode; |
1293 | mutex_unlock(&usbvision->lock); | 1293 | errCode = -EBUSY; |
1294 | return -EBUSY; | 1294 | goto out; |
1295 | } | 1295 | } |
1296 | 1296 | ||
1297 | // If so far no errors then we shall start the radio | 1297 | // If so far no errors then we shall start the radio |
@@ -1308,6 +1308,7 @@ static int usbvision_radio_open(struct inode *inode, struct file *file) | |||
1308 | usbvision->initialized = 0; | 1308 | usbvision->initialized = 0; |
1309 | } | 1309 | } |
1310 | } | 1310 | } |
1311 | out: | ||
1311 | mutex_unlock(&usbvision->lock); | 1312 | mutex_unlock(&usbvision->lock); |
1312 | return errCode; | 1313 | return errCode; |
1313 | } | 1314 | } |