summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFei Shao <fshao@chromium.org>2021-10-14 20:03:52 +0800
committerJassi Brar <jaswinder.singh@linaro.org>2021-10-19 12:28:09 -0500
commit0a5ad4322927ee4aaba6facc0e4faf1ab6c0d48e (patch)
treebd3f9f56ddcffadc42c2bf0bd9632d8582ee17fa /tools/perf/scripts/python/stackcollapse.py
parent5c154b6a51c2d2d7f266b3ef49b7dd1dc8cb5b65 (diff)
mailbox: mtk-cmdq: Fix local clock ID usage
In the probe function, the clock IDs were pointed to local variables which should only be used in the same code block, and any access to them after the probing stage becomes an use-after-free case. Since there are only limited variants of the gce clock names so far, we can just declare them as static constants to fix the issue. Fixes: 85dfdbfc13ea ("mailbox: cmdq: add multi-gce clocks support for mt8195") Signed-off-by: Fei Shao <fshao@chromium.org> Reviewed-by: Tzung-Bi Shih <tzungbi@google.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions