linux/drivers/mailbox
Fei Shao 6500e7148a mailbox: mtk-cmdq: Fix local clock ID usage
[ Upstream commit 0a5ad43229 ]

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: 85dfdbfc13 ("mailbox: cmdq: add multi-gce clocks support for mt8195")
Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:35 +01:00
..
arm_mhu_db.c mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe() 2021-04-13 20:07:36 -05:00
arm_mhu.c mailbox: arm_mhu: Remove redundant error printing in mhu_probe() 2021-06-26 11:37:48 -05:00
arm_mhuv2.c
armada-37xx-rwtm-mailbox.c
bcm-flexrm-mailbox.c mailbox: bcm-flexrm-mailbox: Remove redundant dev_err call in flexrm_mbox_probe() 2021-06-26 11:40:34 -05:00
bcm-pdc-mailbox.c mailbox: bcm-pdc: Remove redundant error printing in pdc_probe() 2021-06-26 11:37:50 -05:00
bcm2835-mailbox.c mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_probe() 2021-06-26 11:40:32 -05:00
hi3660-mailbox.c mailbox: hisilicon: Use the correct HiSilicon copyright 2021-06-26 11:38:02 -05:00
hi6220-mailbox.c mailbox: hisilicon: Use the correct HiSilicon copyright 2021-06-26 11:38:02 -05:00
imx-mailbox.c mailbox: imx: Avoid using val uninitialized in imx_mu_isr() 2021-06-26 12:06:18 -05:00
Kconfig mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module 2021-08-29 23:50:15 -05:00
mailbox-altera.c
mailbox-mpfs.c mbox: add polarfire soc system controller mailbox 2021-06-26 12:06:48 -05:00
mailbox-sti.c mailbox: sti: quieten kernel-doc warnings 2021-08-29 23:50:12 -05:00
mailbox-test.c
mailbox-xgene-slimpro.c
mailbox.c
mailbox.h
Makefile mbox: add polarfire soc system controller mailbox 2021-06-26 12:06:48 -05:00
mtk-cmdq-mailbox.c mailbox: mtk-cmdq: Fix local clock ID usage 2021-11-18 19:16:35 +01:00
omap-mailbox.c
pcc.c
pl320-ipc.c
platform_mhu.c
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: Add compatible for MSM8953 SoC 2021-08-30 00:29:29 -05:00
qcom-ipcc.c mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module 2021-08-29 23:50:15 -05:00
rockchip-mailbox.c
sprd-mailbox.c mailbox: sprd: Add supplementary inbox support 2021-04-13 20:07:36 -05:00
stm32-ipcc.c
sun6i-msgbox.c
tegra-hsp.c
ti-msgmgr.c
zynqmp-ipi-mailbox.c