Skip to content
Commit 0db8aa49 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Jonathan Cameron
Browse files

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: e717f8c6

 ("iio: adc: Add the TI ads124s08 ADC code")
Signed-off-by: default avatarVincent Stehlé <vincent.stehle@laposte.net>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4e63ed6b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment