[PATCH 1/2] mailbox: mtk-cmdq: Validate alias_id on probe
Tzung-Bi Shih
tzungbi at google.com
Thu Oct 14 03:47:01 PDT 2021
On Thu, Oct 14, 2021 at 05:31:10PM +0800, Fei Shao wrote:
> 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: 85dfdbfc13ea ("mailbox: cmdq: add multi-gce clocks support for
> mt8195")
> Signed-off-by: Fei Shao <fshao at chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi at google.com>
More information about the Linux-mediatek
mailing list