]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 1 May 2021 16:53:13 +0000 (17:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 May 2021 07:32:36 +0000 (08:32 +0100)
commitc1b9171e5cc45e2b477fdf9906db184a7acc6a12
tree69442855425f659b6acf45e45870a64ba230b342
parentec668e213e3b0c05f1c4446976b0787e7897699b
iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()

Add space for the timestamp to be inserted.  Also ensure correct
alignment for passing to iio_push_to_buffers_with_timestamp()

Fixes: ea5e04c7c056 ("iio: adc: Add AD7768-1 ADC basic support")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210501165314.511954-2-jic23@kernel.org
Cc: <Stable@vger.kernel.org>
drivers/iio/adc/ad7768-1.c