Re: [PATCH] iio: adc: ads124: avoid buffer overflow

2019-04-07 Thread Jonathan Cameron
On Sun, 7 Apr 2019 13:02:42 +0100 Jonathan Cameron wrote: > On Mon, 1 Apr 2019 07:41:37 -0500 > Dan Murphy wrote: > > > On 3/31/19 1:54 PM, Vincent Stehlé wrote: > > > When initializing the priv->data array starting from index 1, there is one > > > less element to consider than when initializ

Re: [PATCH] iio: adc: ads124: avoid buffer overflow

2019-04-07 Thread Jonathan Cameron
On Mon, 1 Apr 2019 07:41:37 -0500 Dan Murphy wrote: > On 3/31/19 1:54 PM, Vincent Stehlé wrote: > > 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 T

Re: [PATCH] iio: adc: ads124: avoid buffer overflow

2019-04-01 Thread Dan Murphy
On 3/31/19 1:54 PM, Vincent Stehlé wrote: > 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é > Cc: Da

Re: [PATCH] iio: adc: ads124: avoid buffer overflow

2019-04-01 Thread Mukesh Ojha
On 4/1/2019 12:24 AM, Vincent Stehlé wrote: 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é Cc: Dan Murp

[PATCH] iio: adc: ads124: avoid buffer overflow

2019-03-31 Thread Vincent Stehlé
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é Cc: Dan Murphy Cc: Jonathan Cameron --- drivers/iio/adc/t