linux-stable/drivers/iio/common
Yiyuan Guo 182f0e71ff iio: cros_ec: Fix the allocation size for cros_ec_command
commit 8a4629055e upstream.

The struct cros_ec_command contains several integer fields and a
trailing array. An allocation size neglecting the integer fields can
lead to buffer overrun.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Yiyuan Guo <yguoaz@gmail.com>
Fixes: 974e6f02e2 ("iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.")
Link: https://lore.kernel.org/r/20230630143719.1513906-1-yguoaz@gmail.com
Cc: <Stable@vger.kerenl.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:19:23 +02:00
..
cros_ec_sensors iio: cros_ec: Fix the allocation size for cros_ec_command 2023-08-16 18:19:23 +02:00
hid-sensors
ms_sensors
ssp_sensors iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-10-20 11:40:15 +02:00
st_sensors iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:11:59 +02:00
Kconfig
Makefile