aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/serialio.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2017-04-23 17:52:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-25 20:43:42 +0200
commita455178e59f2b3591840cc543cf637424bd572d7 (patch)
tree97b057c33bfa5a55649a3c8400a0745318167b44 /drivers/staging/speakup/serialio.c
parentstaging: comedi: support vm_access_process for mmap'd buffer (diff)
downloadlinux-dev-a455178e59f2b3591840cc543cf637424bd572d7.tar.xz
linux-dev-a455178e59f2b3591840cc543cf637424bd572d7.zip
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>
Diffstat (limited to 'drivers/staging/speakup/serialio.c')
0 files changed, 0 insertions, 0 deletions