linux/drivers/staging/comedi
H Hartley Sweeten a437dee533 staging: comedi: serial2002: fix Coverity "Explicit null dereference"
serial2002_setup_subdevices() initializes each subdevice based on the
config read from the attached serial device. Part of this initialization
is to setup the subdevice range_table_list for the non digital subdevices.
The range_table_list is allocated only when a 'range' is passed to the
functions. Each channel of the subdevice then has it's 'range' initialized
and that range is added to the range_table_list.

The logic of this function works but causes Coverity complain about an
Explicit null dereference of the allocated 'range_table_list'. Add a check
for the 'range_table_list' to quiet the Coverity issue.

Reported-by: coverity (CID 1011632)
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-04-30 17:15:59 +02:00
..
drivers staging: comedi: serial2002: fix Coverity "Explicit null dereference" 2015-04-30 17:15:59 +02:00
kcomedilib
Kconfig
Makefile
TODO
comedi.h
comedi_buf.c
comedi_compat32.c
comedi_compat32.h
comedi_fops.c staging: comedi: comedi_fops: extend spin-lock scope in comedi_event() 2015-04-03 13:11:54 +02:00
comedi_internal.h staging: comedi: make comedi_internal.h self-reliant 2015-04-03 13:12:28 +02:00
comedi_pci.c staging: comedi: comedi_pci.c: include new "comedi_pci.h" header 2015-03-20 14:08:09 +01:00
comedi_pci.h staging: comedi: comedi_pci.h: move PCI stuff out of comedidev.h 2015-03-20 14:08:18 +01:00
comedi_pcmcia.c
comedi_pcmcia.h
comedi_usb.c
comedi_usb.h
comedidev.h staging: comedi: comedi_fc.h: begin migration to comedidev.h 2015-04-03 13:13:59 +02:00
comedilib.h
drivers.c
proc.c
range.c