diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-07-09 13:29:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-10 14:03:00 +0200 |
commit | ef75e14a6c935eec82abac07ab68e388514e39bc (patch) | |
tree | 8f8707f25c62ad2a263acac276267a048d4e2e71 /drivers/usb/cdns3/debug.h | |
parent | 617894cd848f592fa84d7cf561dc80929afc66ff (diff) |
staging: comedi: verify array index is correct before using it
This code reads from the array before verifying that "trig" is a valid
index. If the index is wildly out of bounds then reading from an
invalid address could lead to an Oops.
Fixes: a8c66b684efa ("staging: comedi: addi_apci_1500: rewrite the subdevice support functions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20200709102936.GA20875@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/debug.h')
0 files changed, 0 insertions, 0 deletions