Thread (6 messages) flat view 6 messages, 2 authors, 2021-10-14

Re: [PATCH 1/2] mailbox: mtk-cmdq: Validate alias_id on probe

From: Tzung-Bi Shih <hidden>
Date: 2021-10-14 10:47:15
Also in: linux-arm-kernel, lkml

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 <redacted>
Reviewed-by: Tzung-Bi Shih <redacted>

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help