aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-07-05 13:06:41 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-05 18:21:48 -0400
commit11b79ea75ada39b7f1efdebdad520c93c3ac1f0e (patch)
treed7728a273462e301309cc128a10f3f3b91523d54 /drivers/media/video
parent791a08fc01aaa293a73c9dce260327fdee288faf (diff)
V4L/DVB (12202): em28xx, fix lock imbalance
There is one omitted unlock in em28xx_usb_probe. Fix that. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index 8366c521921d..ebd24a25fb85 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -2652,6 +2652,7 @@ static int em28xx_usb_probe(struct usb_interface *interface,
2652 retval = em28xx_init_dev(&dev, udev, interface, nr); 2652 retval = em28xx_init_dev(&dev, udev, interface, nr);
2653 if (retval) { 2653 if (retval) {
2654 em28xx_devused &= ~(1<<dev->devno); 2654 em28xx_devused &= ~(1<<dev->devno);
2655 mutex_unlock(&dev->lock);
2655 kfree(dev); 2656 kfree(dev);
2656 goto err; 2657 goto err;
2657 } 2658 }