Jonathan Cameron b0bd27f02d iio:adc:ti-ads124s08: Fix buffer being too long.
The buffer is expressed as a u32 array, yet the extra space for
the s64 timestamp was expressed as sizeof(s64)/sizeof(u16).
This will result in 2 extra u32 elements.
Fix by dividing by sizeof(u32).

Fixes: e717f8c6dfec ("iio: adc: Add the TI ads124s08 ADC code")
Signed-off-by: Jonathan Cameron<Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200920112742.170751-8-jic23@kernel.org
2020-12-03 19:40:28 +00:00
..
2020-11-22 11:52:10 -08:00
2020-11-19 14:03:52 +01:00
2020-10-30 14:51:01 -07:00
2020-11-18 16:42:07 -08:00
2020-11-12 13:59:04 -07:00
2020-10-24 10:39:22 -07:00
2020-11-15 10:15:17 -08:00
2020-11-20 10:23:49 -08:00
2020-10-15 14:43:29 -07:00
2020-10-12 13:26:49 -07:00
2020-11-11 09:53:09 +01:00
2020-11-16 15:02:33 -08:00
2020-10-13 12:12:44 -07:00
2020-11-20 10:20:16 -08:00
2020-10-16 12:21:15 -07:00
2020-10-24 10:39:22 -07:00
2020-10-15 14:43:29 -07:00
2020-10-24 10:39:22 -07:00
2020-10-14 15:56:58 -07:00
2020-11-23 08:21:37 +01:00
2020-10-20 10:36:41 -07:00
2020-10-25 11:12:31 -07:00
2020-10-22 12:41:00 -07:00
2020-11-10 15:35:41 +01:00
2020-10-27 19:23:04 +01:00
2020-10-24 10:33:08 -07:00
2020-10-24 10:33:08 -07:00
2020-10-22 12:56:33 -07:00
2020-10-24 10:39:22 -07:00
2020-10-22 12:58:21 -07:00
2020-10-21 11:22:08 -07:00
2020-11-20 12:03:40 -08:00
2020-11-20 16:24:28 -08:00
2020-10-01 22:59:55 +02:00
2020-11-20 16:24:28 -08:00
2020-11-13 13:44:05 +01:00
2020-11-16 14:58:23 -08:00
2020-11-09 08:17:46 +01:00
2020-10-23 11:00:57 -07:00
2020-10-24 10:33:08 -07:00