diff options
author | Kees Cook <kees@kernel.org> | 2024-07-16 14:48:23 -0700 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2024-08-23 18:40:00 +0300 |
commit | c801ed86840ec38b2a9bcafeee3d7c9e14c743f3 (patch) | |
tree | 9d17ba5e340a869ed40e6ab25aec1d2763213daa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7d59b1ff7113459ae1bb722d80ae0a809ce22b00 (diff) |
interconnect: icc-clk: Add missed num_nodes initialization
With the new __counted_by annotation, the "num_nodes" struct member must
be set before accessing the "nodes" array. This initialization was done
in other places where a new struct icc_onecell_data is allocated, but this
case in icc_clk_register() was missed. Set "num_nodes" after allocation.
Fixes: dd4904f3b924 ("interconnect: qcom: Annotate struct icc_onecell_data with __counted_by")
Signed-off-by: Kees Cook <kees@kernel.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20240716214819.work.328-kees@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions