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-22 09:10:05 +0200 |
| commit | fc51cf84df2226a5b6433cdf8e811bb2a1c86369 (patch) | |
| tree | e1b30d442b5a5bed3409a0c92f254febb51759ae /include/linux/debugobjects.h | |
| parent | 560070052ccb1a1ec2ed7ccf2b0c00691ea5f514 (diff) | |
staging: comedi: verify array index is correct before using it
[ Upstream commit ef75e14a6c935eec82abac07ab68e388514e39bc ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
