kernel-fxtec-pro1x/drivers/staging/comedi
Pan Bian a455178e59 staging: comedi: addi_apci_3xxx: check return value
Function pci_ioremap_bar() will return a NULL pointer if there is no
enough memory. However, in function apci3xxx_auto_attach(), the return
value of function pci_ioremap_bar() is not validated. This may result in
NULL dereference in following access to dev->mmio. This patch fixes the
bug.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-25 20:43:42 +02:00
..
drivers staging: comedi: addi_apci_3xxx: check return value 2017-04-25 20:43:42 +02:00
kcomedilib
comedi.h
comedi_buf.c
comedi_compat32.c
comedi_compat32.h
comedi_fops.c
comedi_internal.h
comedi_pci.c
comedi_pci.h
comedi_pcmcia.c
comedi_pcmcia.h
comedi_usb.c
comedi_usb.h
comedidev.h
comedilib.h
drivers.c
Kconfig
Makefile
proc.c
range.c
TODO