V4L/DVB (12202): em28xx, fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Sun, 5 Jul 2009 17:06:41 +0000 (14:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 5 Jul 2009 22:21:48 +0000 (19:21 -0300)
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>
drivers/media/video/em28xx/em28xx-cards.c

index 8366c52..ebd24a2 100644 (file)
@@ -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;
        }