diff options
author | 2024-08-09 15:28:30 +0300 | |
---|---|---|
committer | 2024-08-10 11:22:11 +0100 | |
commit | 4f6ca3464d987054f5e75f097a97dcbb86a87569 (patch) | |
tree | aa3acc3b240b50a06ebd06ee09a45130f6557b21 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: bmi323: suspend and resume triggering on relevant pm operations (diff) | |
download | wireguard-linux-4f6ca3464d987054f5e75f097a97dcbb86a87569.tar.xz wireguard-linux-4f6ca3464d987054f5e75f097a97dcbb86a87569.zip |
iio: dac: ltc2664: Fix off by one in ltc2664_channel_config()
This comparison should be >= ARRAY_SIZE() instead of >. The "mspan"
variable is later used as an array index into ltc2664_mspan_lut[] so
this is an off by one bug.
Fixes: 4cc2fc445d2e ("iio: dac: ltc2664: Add driver for LTC2664 and LTC2672")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/5727ab54-6280-466e-b107-1b6006e5ab29@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions