staging: comedi: double unlock in usbduxsigma_attach()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 22 Jun 2012 07:14:59 +0000 (10:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jun 2012 03:49:36 +0000 (20:49 -0700)
There was a double unlock introduced in 60ff461067 ("staging: comedi:
usbduxsigma: use attach_usb() hook").

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c

index 8da8c1c..543e604 100644 (file)
@@ -2450,7 +2450,6 @@ static int usbduxsigma_attach(struct comedi_device *dev,
        if (index < 0) {
                dev_err(dev->class_dev,
                        "usbduxsigma: error: attach failed, dev not connected to the usb bus.\n");
-               up(&start_stop_sem);
                ret = -ENODEV;
        } else
                ret = usbduxsigma_attach_common(dev, &usbduxsub[index],