linux/drivers/staging
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
..
android staging: android: ion: fix wrong init of dma_buf_export_info 2015-04-21 14:47:16 +05:30
board
clocking-wizard
comedi staging: comedi: serial2002: fix Coverity "Explicit null dereference" 2015-04-30 17:15:59 +02:00
dgap
dgnc
emxx_udc staging: emxx_udc: Remove dead code 2015-04-30 16:52:21 +02:00
fbtft Staging: fbtft: fix header guard typo 2015-04-30 16:51:21 +02:00
fsl-mc
ft1000
fwserial
gdm72xx
gdm724x
goldfish
gs_fpgaboot
i2o i2o: fix simple_return.cocci warnings 2015-04-30 16:13:13 +02:00
iio iio: example code is buggy 2015-04-30 16:57:32 +02:00
lustre staging: lustre: Make struct mdc_kuc_fops static 2015-04-30 16:24:04 +02:00
media Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
mt29f_spinand
netlogic
nvec Staging driver patches for 4.1-rc1 2015-04-13 17:37:33 -07:00
octeon staging: octeon-ethernet: update boilerplate comments 2015-04-30 17:06:09 +02:00
octeon-usb staging: octeon-usb: fix unaligned isochronous transfers 2015-04-28 13:14:21 +02:00
olpc_dcon
ozwpan
panel staging: panel: remove duplicate code 2015-04-30 17:10:51 +02:00
rtl8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723au Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-04-15 09:00:47 -07:00
rts5208
skein
slicoss
sm7xxfb
sm750fb
speakup
ste_rmi4
unisys staging: unisys: remove uislib module from staging tree 2015-04-30 16:37:22 +02:00
vme
vt6655 staging: vt6655: device_intr check for vif on while loop 2015-04-30 16:57:32 +02:00
vt6656
wlan-ng
xgifb
Kconfig
Makefile
staging.c