diff options
author | Yiyuan Guo <yguoaz@gmail.com> | 2023-06-30 22:37:19 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-07-29 12:21:21 +0100 |
commit | 8a4629055ef55177b5b63dab1ecce676bd8cccdd (patch) | |
tree | fcd1de5ffe8df73d4a6f3038ef617af78ffa4989 /scripts/clang-tools/gen_compile_commands.py | |
parent | 6811694eb2f6b7a4e97be2029edc7dd6a39460f8 (diff) |
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 <tzungbi@kernel.org>
Signed-off-by: Yiyuan Guo <yguoaz@gmail.com>
Fixes: 974e6f02e27e ("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>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions