summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEthan Carter Edwards <ethan@ethancedwards.com>2025-02-22 14:55:20 -0500
committerMark Brown <broonie@kernel.org>2025-02-25 13:19:23 +0000
commit63d93f4d0f38fbb95a55729fbd2cc4920743931c (patch)
treecb0b2068a3b0baf52c5b4c8cdd0dbd3a8d68e37f /tools/perf/scripts/python
parenta5a3de8990f47f4c54ca5daeeea8ff7daa42f9de (diff)
ASoC: q6dsp: q6apm: replace kzalloc() with kcalloc() in q6apm_map_memory_regions()
We are trying to get rid of all multiplications from allocation functions to prevent integer overflows[1]. Here the multiplication is obviously safe, but using kcalloc() is more appropriate and improves readability. This patch has no effect on runtime behavior. Link: https://github.com/KSPP/linux/issues/162 [1] Link: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patch.msgid.link/20250222-q6apm-kcalloc-v1-1-6f09dae6c31c@ethancedwards.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions