summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-07-03 14:51:17 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-07-16 08:47:26 +0100
commit0eb8d7b25397330beab8ee62c681975b79f37223 (patch)
treea181b29a94bae11558ecdcfee252ed9448e12c52 /tools/perf/scripts/python/gecko.py
parent66d4374d97f85516b5a22418c5e798aed2606dec (diff)
iio: adc: ad7173: fix channels index for syscalib_mode
Fix the index used to look up the channel when accessing the syscalib_mode attribute. The address field is a 0-based index (same as scan_index) that it used to access the channel in the ad7173_channels array throughout the driver. The channels field, on the other hand, may not match the address field depending on the channel configuration specified in the device tree and could result in an out-of-bounds access. Fixes: 031bdc8aee01 ("iio: adc: ad7173: add calibration support") Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250703-iio-adc-ad7173-fix-channels-index-for-syscalib_mode-v1-1-7fdaedb9cac0@baylibre.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions