diff options
author | Dmitry Baryshkov <[email protected]> | 2023-01-05 02:22:19 +0200 |
---|---|---|
committer | Georgi Djakov <[email protected]> | 2023-03-06 16:48:23 +0200 |
commit | f77ebdda0ee652124061c2ac42399bb6c367e729 (patch) | |
tree | 0e5d75432a9fd5c31e8c43a3bf4f0e5aa50c61c4 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) |
interconnect: qcom: osm-l3: fix icc_onecell_data allocation
This is a struct with a trailing zero-length array of icc_node pointers
but it's allocated as if it were a single array of icc_nodes instead.
Fortunately this overallocates memory rather then allocating less memory
than required.
Fix by replacing devm_kcalloc() with devm_kzalloc() and struct_size()
macro.
Fixes: 5bc9900addaf ("interconnect: qcom: Add OSM L3 interconnect provider support")
Signed-off-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Georgi Djakov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions