linux-stable/drivers/iio/chemical
Jonathan Cameron a5bf6fdd19 iio:chemical:sps30: Fix timestamp alignment
One of a class of bugs pointed out by Lars in a recent review.
iio_push_to_buffers_with_timestamp assumes the buffer used is aligned
to the size of the timestamp (8 bytes).  This is not guaranteed in
this driver which uses an array of smaller elements on the stack.

Fixes: 232e0f6dde ("iio: chemical: add support for Sensirion SPS30 sensor")
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: <Stable@vger.kernel.org>
Acked-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
2020-05-22 17:30:55 +01:00
..
ams-iaq-core.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
atlas-ezo-sensor.c iio: chemical: add atlas-ezo-sensor initial support 2020-05-16 17:57:06 +01:00
atlas-sensor.c iio: chemical: atlas-sensor: add RTD-SM module support 2020-04-25 15:20:47 +01:00
bme680.h iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680_core.c iio:chemical:bme680: Tidy up parameters to regmap_bulk_read 2020-04-19 16:56:39 +01:00
bme680_i2c.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680_spi.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
ccs811.c iio: chemical: Add OF match table for CCS811 VOC sensor 2020-05-03 09:47:18 +01:00
Kconfig iio: chemical: add atlas-ezo-sensor initial support 2020-05-16 17:57:06 +01:00
Makefile iio: chemical: add atlas-ezo-sensor initial support 2020-05-16 17:57:06 +01:00
pms7003.c iio: chemical: pms7003: extend supported sensors list 2019-04-04 20:19:40 +01:00
sgp30.c iio: chemical: sgp30: drop excess semicolon 2019-10-22 12:41:07 +01:00
sps30.c iio:chemical:sps30: Fix timestamp alignment 2020-05-22 17:30:55 +01:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00