linux/drivers/staging/comedi
H Hartley Sweeten 70fcd1b7a6 staging: comedi: ni_670x: fix dereference of an invalid pointer
The attach if this driver can fail before the subdevices are
allocated. If the attach fails the comedi core will call the
detach routine to allow the driver to do it's cleanup.

We need to make sure that the subdevice allocation was successful
before trying to dereference subdevice[0] to free the allocated
range table list.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-07-06 15:46:06 -07:00
..
drivers staging: comedi: ni_670x: fix dereference of an invalid pointer 2012-07-06 15:46:06 -07:00
kcomedilib
comedi.h staging: comedi: COMEDI_CB_EOA is also used to report end-of-output. 2012-04-18 16:37:06 -07:00
comedi_compat32.c staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_compat32.h staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_fops.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
comedi_internal.h staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
comedidev.h staging: comedi: remove CONFIG_COMEDI_PCI define 2012-06-20 13:00:42 -07:00
comedilib.h
drivers.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
Kconfig staging: comedi: Move COMEDI_MITE and COMEDI_NI_TIOCMD 2012-06-26 15:10:57 -07:00
Makefile Staging: comedi: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:52 -07:00
proc.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
range.c staging: comedi: rename internal.h to comedi_internal.h 2012-06-20 12:56:54 -07:00
TODO