Skip to content
Commit 0a5ad432 authored by Fei Shao's avatar Fei Shao Committed by Jassi Brar
Browse files

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: 85dfdbfc ("mailbox: cmdq: add multi-gce clocks support for mt8195")
Signed-off-by: default avatarFei Shao <fshao@chromium.org>
Reviewed-by: default avatarTzung-Bi Shih <tzungbi@google.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 5c154b6a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment