diff options
| author | Peng Fan <peng.fan@nxp.com> | 2026-10-02 21:11:20 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-06 18:08:00 +0200 |
| commit | 8a889c83e478074f90335791f7d2c8e2dc5b0552 (patch) | |
| tree | 2185bbda02c2d825268fe76774ecdcb8d2d3821c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 4e1b5ccf1eabdec851a443eab1b26118c5096482 (diff) | |
regmap: use krealloc_array() in regmap_register_patch()
Replace krealloc() with krealloc_array() in regmap_register_patch() to
gain the built-in overflow check on the element-count * element-size
multiplication, and switch to the early-return error style to reduce
nesting.
Assisted-by: LLM
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20261002-regmap-lock-2nd-v2-4-e172b0501c52@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
