diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-30 11:42:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-08 12:29:40 -0800 |
commit | 2f30866fbf0dd3b1d5ea87ebab2a96222d1cebe9 (patch) | |
tree | dd7fe631921599bef850067d0a41427a26d80717 | |
parent | d6610a502738e23aab5418e82c024be201e13f02 (diff) | |
download | linux-2f30866fbf0dd3b1d5ea87ebab2a96222d1cebe9.tar.bz2 |
Staging: comedi: unlock on error in usbduxsigma_attach()
We should release the udev->sem lock before returning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/usbduxsigma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c index f4025b60cd3f..4500b80eee6b 100644 --- a/drivers/staging/comedi/drivers/usbduxsigma.c +++ b/drivers/staging/comedi/drivers/usbduxsigma.c @@ -2691,6 +2691,7 @@ static int usbduxsigma_attach(struct comedi_device *dev, if (ret < 0) { dev_err(&udev->interface->dev, "comedi%d: no space for subdev\n", dev->minor); + up(&udev->sem); up(&start_stop_sem); return ret; } |