diff options
| author | Yiyuan Guo <[email protected]> | 2023-06-30 14:37:19 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2023-07-29 11:21:21 +0000 |
| commit | 8a4629055ef55177b5b63dab1ecce676bd8cccdd (patch) | |
| tree | fcd1de5ffe8df73d4a6f3038ef617af78ffa4989 /rust/helpers.c | |
| parent | iio: imu: lsm6dsx: Fix mount matrix retrieval (diff) | |
| download | kernel-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
