diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2009-03-03 18:38:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 21:53:53 (GMT) |
commit | e57795a1a7ebf8ac91cfb82070cf19bf01ee4ac0 (patch) | |
tree | a1dfc91bebb13a01f324ba4a502d027c095c33c9 /drivers | |
parent | 3944969427e11f3081d676c16cebeff4060ce992 (diff) | |
download | linux-fsl-qoriq-e57795a1a7ebf8ac91cfb82070cf19bf01ee4ac0.tar.xz |
Staging: comedi: usbduxfast: balance semaphores up/down in attach error path
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Bernd Porr <BerndPorr@f2s.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/usbduxfast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index a8d6469..95b5807 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -1766,6 +1766,7 @@ static int usbduxfast_attach(comedi_device *dev, comedi_devconfig *it) if (ret < 0) { printk(KERN_ERR "comedi%d: usbduxfast: error alloc space for " "subdev\n", dev->minor); + up(&(usbduxfastsub[index].sem)); up(&start_stop_sem); return ret; } |