diff options
| author | Dan Carpenter <[email protected]> | 2020-07-09 10:29:36 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-10 12:03:00 +0000 |
| commit | ef75e14a6c935eec82abac07ab68e388514e39bc (patch) | |
| tree | 8f8707f25c62ad2a263acac276267a048d4e2e71 /tools/lib/subcmd/parse-options.c | |
| parent | Merge tag 'iio-fixes-for-5.8a' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-ef75e14a6c935eec82abac07ab68e388514e39bc.tar.gz kernel-ef75e14a6c935eec82abac07ab68e388514e39bc.zip | |
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 <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Link: https://lore.kernel.org/r/20200709102936.GA20875@mwanda
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/parse-options.c')
0 files changed, 0 insertions, 0 deletions
