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

Re: [PATCH v2 2/2] mailbox: mtk-cmdq: Fix local clock ID usage

From: Tzung-Bi Shih <hidden>
Date: 2021-10-14 15:55:09
Also in: linux-mediatek, lkml

On Thu, Oct 14, 2021 at 08:03:52PM +0800, Fei Shao wrote:
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: 85dfdbfc13ea ("mailbox: cmdq: add multi-gce clocks support for
mt8195")
Signed-off-by: Fei Shao <redacted>
Reviewed-by: Tzung-Bi Shih <redacted>

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