diff options
| author | Jacob Keller <jacob.e.keller@intel.com> | 2023-03-03 10:04:57 -0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2023-03-05 23:38:32 +0000 |
| commit | c9ef0fee3bdf8197538aadc728e475fceba113bb (patch) | |
| tree | 24fd763f7765417a5ab3a5743a6a11d068c1518e /tools/perf/scripts/python | |
| parent | Linux 6.3-rc1 (diff) | |
| download | linux-c9ef0fee3bdf8197538aadc728e475fceba113bb.tar.gz linux-c9ef0fee3bdf8197538aadc728e475fceba113bb.zip | |
ASoC: Intel: avs: Use struct_size for struct avs_modcfg_ext size
The struct avs_modcfg_ext structure has a flexible array member for the
pin_fmts array, and the size should be calculated using struct_size to
prevent the potential for overflow with the allocation.
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20230303180457.2457069-1-jacob.e.keller@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
