aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorYiyuan Guo <[email protected]>2023-06-30 14:37:19 +0000
committerJonathan Cameron <[email protected]>2023-07-29 11:21:21 +0000
commit8a4629055ef55177b5b63dab1ecce676bd8cccdd (patch)
treefcd1de5ffe8df73d4a6f3038ef617af78ffa4989 /rust/helpers.c
parentiio: imu: lsm6dsx: Fix mount matrix retrieval (diff)
downloadkernel-8a4629055ef55177b5b63dab1ecce676bd8cccdd.tar.gz
kernel-8a4629055ef55177b5b63dab1ecce676bd8cccdd.zip
iio: cros_ec: Fix the allocation size for cros_ec_command
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 <[email protected]> Signed-off-by: Yiyuan Guo <[email protected]> Fixes: 974e6f02e27e ("iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.") Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions