acrn-kernel/drivers/mailbox
Huisong Li f0d5624fbe mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure
[ Upstream commit 6d7d3c2874 ]

Currently, 'pcc_chan_count' is remains set to a non-zero value if PCC
subspaces are parsed successfully but something else fail later during
the initial PCC probing phase. This will result in pcc_mbox_request_channel
trying to access the resources that are not initialised or allocated and
may end up in a system crash.

Reset pcc_chan_count to 0 when the PCC probe fails in order to prevent
the possible issue as described above.

Fixes: ce028702dd ("mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe")
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:31:57 +01:00
..
Kconfig mailbox: mediatek: add support for adsp mailbox controller 2022-03-12 19:24:57 -06:00
Makefile mailbox: mediatek: add support for adsp mailbox controller 2022-03-12 19:24:57 -06:00
apple-mailbox.c mailbox: apple: Implement poll_data() operation 2022-09-15 13:14:01 -05:00
arm_mhu.c
arm_mhu_db.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
arm_mhuv2.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
armada-37xx-rwtm-mailbox.c
bcm-flexrm-mailbox.c mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg 2022-10-05 21:50:53 -05:00
bcm-pdc-mailbox.c
bcm2835-mailbox.c
hi3660-mailbox.c mailbox: hi3660: convert struct comments to kernel-doc notation 2022-01-11 23:47:32 -06:00
hi6220-mailbox.c
imx-mailbox.c mailbox: imx: fix RST channel support 2022-10-05 21:46:36 -05:00
mailbox-altera.c
mailbox-mpfs.c mailbox: mpfs: account for mbox offsets while sending 2022-10-05 21:48:38 -05:00
mailbox-sti.c
mailbox-test.c
mailbox-xgene-slimpro.c
mailbox.c mailbox: forward the hrtimer if not queued and under a lock 2022-05-23 14:45:24 -05:00
mailbox.h
mtk-adsp-mailbox.c mailbox: mediatek: support mt8186 adsp mailbox 2022-05-21 11:41:30 -05:00
mtk-cmdq-mailbox.c mailbox: mtk-cmdq: Remove proprietary cmdq_task_cb 2022-08-02 15:06:57 -05:00
omap-mailbox.c mailbox: omap: using pm_runtime_resume_and_get to simplify the code 2022-05-21 11:41:30 -05:00
pcc.c mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure 2022-12-31 13:31:57 +01:00
pl320-ipc.c
platform_mhu.c
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock support 2022-10-05 21:50:01 -05:00
qcom-ipcc.c mailbox: qcom-ipcc: flag IRQ NO_THREAD 2022-10-05 21:51:58 -05:00
rockchip-mailbox.c
sprd-mailbox.c
stm32-ipcc.c
sun6i-msgbox.c
tegra-hsp.c mailbox: tegra-hsp: Add 128-bit shared mailbox support 2022-05-21 11:41:30 -05:00
ti-msgmgr.c mailbox: ti-msgmgr: Operate mailbox in polled mode during system suspend 2022-03-12 19:33:30 -06:00
zynqmp-ipi-mailbox.c mailbox: zynq: add missing of_node_put before return 2022-01-11 23:47:32 -06:00