summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorSam Daly <sam@samdaly.ie>2026-05-14 19:23:20 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-15 17:39:44 +0300
commit95e8a48d7a85d4226934020e57815a3316d3a14b (patch)
tree46ec6749d977be17f64fb820cf939caea9124e48 /scripts/Makefile.thinlto
parent307dc4240bd41852d9e0912921e298160db1c109 (diff)
downloadlinux-95e8a48d7a85d4226934020e57815a3316d3a14b.tar.xz
iio: adc: ti-ads1298: add bounds check to pga_settings index
ads1298_pga_settings has 7 elements but ADS1298_MASK_CH_PGA can yield values 0-7. If it yields a value >= 7, this causes an out-of-bounds array access. Add a bounds check and return -EINVAL if the index is out of range. Note that the remaining value b111 is reserved so should not be seen in a correctly functioning system. Assisted-by: gkh_clanker_2000 Cc: stable <stable@kernel.org> Cc: Jonathan Cameron <jic23@kernel.org> Cc: David Lechner <dlechner@baylibre.com> Cc: "Nuno Sá" <nuno.sa@analog.com> Cc: Andy Shevchenko <andy@kernel.org> Signed-off-by: Sam Daly <sam@samdaly.ie> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions