linux_dsm_epyc7002/drivers/iio/light
Jonathan Cameron 4973967504 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:56:46 +02:00
..
acpi-als.c
adjd_s311.c
adux1020.c
al3010.c
al3320a.c
apds9300.c
apds9960.c
as73211.c
bh1750.c
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c
cros_ec_light_prox.c iio: cros_ec: unify hw fifo attributes into the core file 2020-09-29 17:27:07 +01:00
gp2ap002.c iio: light: gp2ap002: Fix rumtime PM imbalance on error 2021-05-19 10:13:13 +02:00
gp2ap020a00f.c
hid-sensor-als.c
hid-sensor-prox.c iio: hid-sensor-prox: Fix scale not correct issue 2021-03-25 09:04:16 +01:00
iqs621-als.c
isl29018.c
isl29028.c
isl29125.c iio: light: isl29125: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:36 +02:00
jsa1212.c
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
lm3533-als.c
ltr501.c iio: ltr501: ltr501_read_ps(): add missing endianness conversion 2021-07-14 16:55:44 +02:00
lv0104cs.c
Makefile
max44000.c
max44009.c
noa1305.c
opt3001.c
pa12203001.c
rpr0521.c iio:light:rpr0521: Fix timestamp alignment and prevent data leak. 2020-12-30 11:54:24 +01:00
si1133.c
si1145.c
st_uvis25_core.c iio:light:st_uvis25: Fix timestamp alignment and prevent data leak. 2020-12-30 11:54:24 +01:00
st_uvis25_i2c.c
st_uvis25_spi.c
st_uvis25.h iio:light:st_uvis25: Fix timestamp alignment and prevent data leak. 2020-12-30 11:54:24 +01:00
stk3310.c
tcs3414.c iio: light: tcs3414: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:37 +02:00
tcs3472.c iio: light: tcs3472: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:37 +02:00
tsl2563.c
tsl2583.c iio: tsl2583: Fix division by a zero lux_val 2021-05-19 10:13:16 +02:00
tsl2772.c
tsl4531.c
us5182d.c
vcnl4000.c iio: light: vcnl4000: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:45 +02:00
vcnl4035.c iio: light: vcnl4035: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:46 +02:00
veml6030.c
veml6070.c
vl6180.c
zopt2201.c