diff options
| author | Vincent Stehlé <[email protected]> | 2019-03-31 18:54:23 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-04-07 12:01:36 +0000 |
| commit | 0db8aa49a97e7f40852a64fd35abcc1292a7c365 (patch) | |
| tree | e37d55a046340917a6fa881aae0a846eff201663 /lib/test_stackinit.c | |
| parent | iio: adc: modify NPCM ADC read reference voltage (diff) | |
| download | kernel-0db8aa49a97e7f40852a64fd35abcc1292a7c365.tar.gz kernel-0db8aa49a97e7f40852a64fd35abcc1292a7c365.zip | |
iio: adc: ads124: avoid buffer overflow
When initializing the priv->data array starting from index 1, there is one
less element to consider than when initializing the full array.
Fixes: e717f8c6dfec8f76 ("iio: adc: Add the TI ads124s08 ADC code")
Signed-off-by: Vincent Stehlé <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Reviewed-by: Dan Murphy <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
