Re: [patch] iio: tsl2583: make array large enough

2016-11-25 Thread walter harms
Am 24.11.2016 18:51, schrieb Brian Masney: > On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: >> >> >> Am 24.11.2016 16:48, schrieb Brian Masney: >>> On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: This array is supposed to have 10 elements. Smatch complains

Re: [patch] iio: tsl2583: make array large enough

2016-11-25 Thread walter harms
Am 24.11.2016 18:51, schrieb Brian Masney: > On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: >> >> >> Am 24.11.2016 16:48, schrieb Brian Masney: >>> On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: This array is supposed to have 10 elements. Smatch complains

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Jonathan Cameron
On 24/11/16 17:51, Brian Masney wrote: > On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: >> >> >> Am 24.11.2016 16:48, schrieb Brian Masney: >>> On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: This array is supposed to have 10 elements. Smatch complains that with

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Jonathan Cameron
On 24/11/16 17:51, Brian Masney wrote: > On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: >> >> >> Am 24.11.2016 16:48, schrieb Brian Masney: >>> On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: This array is supposed to have 10 elements. Smatch complains that with

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Brian Masney
On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: > > > Am 24.11.2016 16:48, schrieb Brian Masney: > > On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: > >> This array is supposed to have 10 elements. Smatch complains that with > >> the current code we can have n ==

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Brian Masney
On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: > > > Am 24.11.2016 16:48, schrieb Brian Masney: > > On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: > >> This array is supposed to have 10 elements. Smatch complains that with > >> the current code we can have n ==

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread walter harms
Am 24.11.2016 16:48, schrieb Brian Masney: > On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: >> This array is supposed to have 10 elements. Smatch complains that with >> the current code we can have n == max_ints and read beyond the end of >> the array. >> >> Fixes: ac4f6eee8fe8

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread walter harms
Am 24.11.2016 16:48, schrieb Brian Masney: > On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: >> This array is supposed to have 10 elements. Smatch complains that with >> the current code we can have n == max_ints and read beyond the end of >> the array. >> >> Fixes: ac4f6eee8fe8

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Brian Masney
On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: > This array is supposed to have 10 elements. Smatch complains that with > the current code we can have n == max_ints and read beyond the end of > the array. > > Fixes: ac4f6eee8fe8 ("staging: iio: TAOS tsl258x: Device driver") >

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Brian Masney
On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: > This array is supposed to have 10 elements. Smatch complains that with > the current code we can have n == max_ints and read beyond the end of > the array. > > Fixes: ac4f6eee8fe8 ("staging: iio: TAOS tsl258x: Device driver") >

[patch] iio: tsl2583: make array large enough

2016-11-24 Thread Dan Carpenter
This array is supposed to have 10 elements. Smatch complains that with the current code we can have n == max_ints and read beyond the end of the array. Fixes: ac4f6eee8fe8 ("staging: iio: TAOS tsl258x: Device driver") Signed-off-by: Dan Carpenter diff --git

[patch] iio: tsl2583: make array large enough

2016-11-24 Thread Dan Carpenter
This array is supposed to have 10 elements. Smatch complains that with the current code we can have n == max_ints and read beyond the end of the array. Fixes: ac4f6eee8fe8 ("staging: iio: TAOS tsl258x: Device driver") Signed-off-by: Dan Carpenter diff --git a/drivers/iio/light/tsl2583.c