diff options
author | Daniel Walker <dwalker@mvista.com> | 2007-12-12 16:22:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:36 -0500 |
commit | 0991112c1c4625323df8a582de1b2f8609922248 (patch) | |
tree | 2dc53190e937a3d4b3a7fb40db13e530a959eea5 /drivers/media/video/usbvision | |
parent | 7cd355e7c0c02e499784c77e88720f7cc8f98473 (diff) |
V4L/DVB (6810): media: video: usbvision: add mutex_unlock() to error paths
There are a few error paths which don't unlock the usbvision->lock.
So I've added mutex_unlock() calls to fix those paths.
Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index e34f311124e3..d929ced58ec3 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -1290,6 +1290,7 @@ 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 | return -EBUSY; | 1294 | return -EBUSY; |
1294 | } | 1295 | } |
1295 | 1296 | ||
@@ -1807,6 +1808,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf, | |||
1807 | usbvision->num_alt,GFP_KERNEL); | 1808 | usbvision->num_alt,GFP_KERNEL); |
1808 | if (usbvision->alt_max_pkt_size == NULL) { | 1809 | if (usbvision->alt_max_pkt_size == NULL) { |
1809 | err("usbvision: out of memory!\n"); | 1810 | err("usbvision: out of memory!\n"); |
1811 | mutex_unlock(&usbvision->lock); | ||
1810 | return -ENOMEM; | 1812 | return -ENOMEM; |
1811 | } | 1813 | } |
1812 | 1814 | ||