linux-brain/drivers/iio/proximity
Jonathan Cameron fe9452c9d7 iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
[ Upstream commit 92babc9938ebbf4050f2fba774836f7edc16a570 ]

Add __aligned(8) to ensure the buffer passed to
iio_push_to_buffers_with_timestamp() is suitable for the naturally
aligned timestamp that will be inserted.

Here an explicit structure is not used, because the holes would
necessitate the addition of an explict memset(), to avoid a kernel
data leak, making for a less minimal fix.

Fixes: 1c28799257 ("iio: light: isl29501: Add support for the ISL29501 ToF sensor.")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Mathieu Othacehe <m.othacehe@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210613152301.571002-9-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:53:45 +02:00
..
Kconfig Kconfig: Fix the reference to the RFD77402 ToF sensor in the 'help' section 2019-08-25 19:08:36 +01:00
Makefile mb1232.c: add distance iio sensor with i2c 2019-04-04 20:20:17 +01:00
as3935.c iio: prox: as3935: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
isl29501.c iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:45 +02:00
mb1232.c iio:proximity:mb1232: Fix timestamp alignment and prevent data leak. 2020-09-17 13:47:50 +02:00
pulsedlight-lidar-lite-v2.c iio: prox: pulsed-light: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
rfd77402.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
srf04.c iio: srf04: fix wrong limitation in distance measuring 2019-10-12 14:31:09 +01:00
srf08.c iio: prox: srf08: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:38 +02:00
sx9500.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vl53l0x-i2c.c iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor. 2018-09-22 16:42:56 +01:00