linux-brain/drivers/iio/light
Jonathan Cameron da8ef748fe iio: light: vcnl4035: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
[ Upstream commit ec90b52c07c0403a6db60d752484ec08d605ead0 ]

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 potential
kernel data leak, making for a less minimal fix.

Fixes: 55707294c4 ("iio: light: Add support for vishay vcnl4035")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210613152301.571002-8-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:53:45 +02:00
..
Kconfig iio: light: fix kconfig dependency bug for VCNL4035 2020-11-24 13:29:21 +01:00
Makefile
acpi-als.c
adjd_s311.c
al3320a.c
apds9300.c
apds9960.c
bh1750.c
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c
cros_ec_light_prox.c
gp2ap020a00f.c
hid-sensor-als.c
hid-sensor-prox.c iio: hid-sensor-prox: Fix scale not correct issue 2021-03-24 11:26:42 +01:00
isl29018.c
isl29028.c
isl29125.c iio: light: isl29125: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
jsa1212.c
lm3533-als.c
ltr501.c iio: ltr501: ltr501_read_ps(): add missing endianness conversion 2021-07-14 16:53:06 +02:00
lv0104cs.c
max44000.c iio:light:max44000 Fix timestamp alignment and prevent data leak. 2020-09-17 13:47:51 +02:00
max44009.c
noa1305.c
opt3001.c
pa12203001.c
rpr0521.c iio:light:rpr0521: Fix timestamp alignment and prevent data leak. 2020-12-30 11:51:44 +01:00
si1133.c iio: si1133: read 24-bit signed integer for measurement 2020-04-23 10:36:43 +02:00
si1145.c iio:light:si1145: Fix timestamp alignment and prevent data leak. 2020-11-05 11:43:29 +01:00
st_uvis25.h iio:light:st_uvis25: Fix timestamp alignment and prevent data leak. 2020-12-30 11:51:44 +01:00
st_uvis25_core.c iio:light:st_uvis25: Fix timestamp alignment and prevent data leak. 2020-12-30 11:51:44 +01:00
st_uvis25_i2c.c
st_uvis25_spi.c
stk3310.c
tcs3414.c iio: light: tcs3414: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
tcs3472.c iio: light: tcs3472: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
tsl2563.c
tsl2583.c iio: tsl2583: Fix division by a zero lux_val 2021-05-19 10:08:31 +02:00
tsl2772.c
tsl4531.c
us5182d.c
vcnl4000.c iio: vcnl4000: Fix i2c swapped word reading. 2020-06-10 20:24:56 +02:00
vcnl4035.c iio: light: vcnl4035: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:45 +02:00
veml6070.c
vl6180.c
zopt2201.c