diff options
| author | Dan Carpenter <error27@gmail.com> | 2026-04-10 13:12:13 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-15 12:01:38 +0100 |
| commit | 5ace794c3ded38038a1f97f9ea26b9a8c835c111 (patch) | |
| tree | eab69fbcc4d647397635dd5919f865d537042e86 /scripts/objdiff | |
| parent | 474f8928d50b09f7dcf507049f08732640b88b49 (diff) | |
iio: adc: qcom-spmi-adc5-gen3: Fix off by one in adc5_gen3_get_fw_channel_data()
The > in "if (chan > ADC5_MAX_CHANNEL)" should be >= to prevent an out
of bound read of the adc->data->adc_chans[] array.
Fixes: baff45179e90 ("iio: adc: Add support for QCOM PMIC5 Gen3 ADC")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
