Commit e57795a1 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Greg Kroah-Hartman

Staging: comedi: usbduxfast: balance semaphores up/down in attach error path

Signed-off-by: default avatarMariusz 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 39449694
...@@ -1766,6 +1766,7 @@ static int usbduxfast_attach(comedi_device *dev, comedi_devconfig *it) ...@@ -1766,6 +1766,7 @@ static int usbduxfast_attach(comedi_device *dev, comedi_devconfig *it)
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "comedi%d: usbduxfast: error alloc space for " printk(KERN_ERR "comedi%d: usbduxfast: error alloc space for "
"subdev\n", dev->minor); "subdev\n", dev->minor);
up(&(usbduxfastsub[index].sem));
up(&start_stop_sem); up(&start_stop_sem);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment