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: NFei Shao <fshao@chromium.org> Reviewed-by: NTzung-Bi Shih <tzungbi@google.com> Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
Showing
想要评论请 注册 或 登录