Skip to content
Snippets Groups Projects
Commit 5c154b6a authored by Fei Shao's avatar Fei Shao Committed by Jassi Brar
Browse files

mailbox: mtk-cmdq: Validate alias_id on probe


of_alias_get_id() may return -ENODEV which leads to illegal access to
the cmdq->clocks array.
Adding a check over alias_id to prevent the unexpected behavior.

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 ce1537fe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment