summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-07-05 17:06:41 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-05 22:21:48 (GMT)
commit11b79ea75ada39b7f1efdebdad520c93c3ac1f0e (patch)
treed7728a273462e301309cc128a10f3f3b91523d54 /drivers/media
parent791a08fc01aaa293a73c9dce260327fdee288faf (diff)
downloadlinux-11b79ea75ada39b7f1efdebdad520c93c3ac1f0e.tar.xz
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')
-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 8366c52..ebd24a2 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,
retval = em28xx_init_dev(&dev, udev, interface, nr);
if (retval) {
em28xx_devused &= ~(1<<dev->devno);
+ mutex_unlock(&dev->lock);
kfree(dev);
goto err;
}