diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-09-26 12:10:37 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-10-17 08:51:26 +0100 |
commit | 7578847b5949db3a75163908bd99c46d27e8b19f (patch) | |
tree | d7f9cb5f42482f833253c8f758710e8c87df1d09 /tools/perf/scripts/python | |
parent | 0dec4d2f2636b9e54d9d29f17afc7687c5407f78 (diff) |
iio: adc: mcp3911: fix sizeof() vs ARRAY_SIZE() bug
This code uses sizeof() instead of ARRAY_SIZE() so it reads beyond the
end of the mcp3911_osr_table[] array.
Fixes: 6d965885f4ea ("iio: adc: mcp3911: add support for oversampling ratio")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/YzFsjY3xLHUQMjVr@kili
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions