Skip to contentSkip to conversation

staging: comedi: double unlock in usbduxsigma_attach()

PATCH In review Dan Carpenter 2 participants 2 messages Jun 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: double unlock in usbduxsigma_attach()

There was a double unlock introduced in 60ff461067 ("staging: comedi:
usbduxsigma: use attach_usb() hook").

drivers/staging/comedi/drivers/usbduxsigma.c +0 -1
index 28f41e9..015b0d0 100644
@@ -2781,7 +2781,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],
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Dan Carpenter

There was a double unlock introduced in 60ff461067 ("staging: comedi:
usbduxsigma: use attach_usb() hook").

drivers/staging/comedi/drivers/usbduxsigma.c +0 -0
index 28f41e9..015b0d0 100644

drivers/staging/comedi/drivers/usbduxsigma.c static int usbduxsigma_attach(struct comedi_device *dev, · line 2786

Quoted 7 lines
drivers/staging/comedi/drivers/usbduxsigma.c +0 -1
@@ -2781,7 +2781,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],

Oops, I must have missed that one!

Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-