WSL2-Linux-Kernel/drivers/mailbox
David Arcari afd0b1fb22 mailbox: PCC: handle parse error
acpi_pcc_probe() calls acpi_table_parse_entries_array() but fails
to check for an error return.  This in turn can result in calling
kcalloc() with a negative count as well as emitting the following
misleading erorr message:

[    2.642015] Could not allocate space for PCC mbox channels

Fixes: 8f8027c5f9 (mailbox: PCC: erroneous error message when parsing ACPI PCCT)
Signed-off-by: David Arcari <darcari@redhat.com>
Reviewed-by: Al Stone <ahs3@redhat.com>
Cc: 4.18+ <stable@vger.kernel.org> # 4.18+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-09-10 12:54:02 +02:00
..
Kconfig mailbox: Add support for i.MX messaging unit 2018-08-15 09:53:07 +05:30
Makefile mailbox: Add support for i.MX messaging unit 2018-08-15 09:53:07 +05:30
arm_mhu.c
bcm-flexrm-mailbox.c maillbox: bcm-flexrm-mailbox: Use dma_pool_zalloc() 2018-03-15 21:23:36 +05:30
bcm-pdc-mailbox.c
bcm2835-mailbox.c mailbox: bcm2835: Fix of_xlate return value 2018-06-06 22:21:59 +05:30
hi3660-mailbox.c mailbox: Add support for Hi3660 mailbox 2018-03-20 11:15:54 +08:00
hi6220-mailbox.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
imx-mailbox.c mailbox: Add support for i.MX messaging unit 2018-08-15 09:53:07 +05:30
mailbox-altera.c mailbox: Convert timers to use timer_setup() 2017-11-06 12:49:51 -08:00
mailbox-sti.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
mailbox-test.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
mailbox-xgene-slimpro.c mailbox: xgene-slimpro: Fix potential NULL pointer dereference 2018-08-03 18:56:08 +05:30
mailbox.c mailbox: reset txdone_method TXDONE_BY_POLL if client knows_txdone 2017-11-14 20:21:28 +05:30
mailbox.h
mtk-cmdq-mailbox.c mailbox: add MODULE_LICENSE() for mtk-cmdq-mailbox.c 2018-08-15 09:43:37 +05:30
omap-mailbox.c mailbox/omap: use of_device_get_match_data() to get match data 2018-08-03 18:57:15 +05:30
pcc.c mailbox: PCC: handle parse error 2018-09-10 12:54:02 +02:00
pl320-ipc.c
platform_mhu.c
qcom-apcs-ipc-mailbox.c mailbox: Add support for Qualcomm SDM845 SoCs 2018-06-06 22:21:59 +05:30
rockchip-mailbox.c
stm32-ipcc.c mailbox: add STMicroelectronics STM32 IPCC driver 2018-06-06 22:21:59 +05:30
tegra-hsp.c
ti-msgmgr.c mailbox: ti-msgmgr: Add support for Secure Proxy 2018-08-03 18:57:41 +05:30