linux-stable/drivers/soc/ti
QintaoShen c4e1888694 soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc
[ Upstream commit ba56291e29 ]

The allocation funciton devm_kcalloc may fail and return a null pointer,
which would cause a null-pointer dereference later.
It might be better to check it and directly return -ENOMEM just like the
usage of devm_kcalloc in previous code.

Signed-off-by: QintaoShen <unSimple1993@163.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/1648107843-29077-1-git-send-email-unSimple1993@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:25:32 +02:00
..
k3-ringacc.c bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
k3-socinfo.c soc: ti: k3-socinfo: Add entry for J721S2 SoC family 2021-12-13 09:46:29 -06:00
Kconfig soc: ti: Kconfig: Drop ARM64 SoC specific configs 2020-11-21 19:22:01 -08:00
knav_dma.c soc: ti: knav_dma: Fix NULL vs IS_ERR() checking in dma_init 2021-12-16 06:34:07 -06:00
knav_qmss.h soc: ti: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
knav_qmss_acc.c soc: TI knav_qmss: make symbol 'knav_acc_range_ops' static 2020-07-24 14:47:10 -07:00
knav_qmss_queue.c soc: ti: knav_qmss: Put refcount for dev node in failure case 2021-01-24 20:51:36 -08:00
Makefile ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
omap_prm.c soc: ti: omap-prm: Fix external abort for am335x pruss 2021-09-30 11:30:03 +03:00
pm33xx.c soc: ti: pm33xx: Fix some resource leak in the error handling paths of the probe function 2021-01-24 20:51:36 -08:00
pruss.c soc: ti: pruss: fix referenced node in error message 2021-11-22 19:40:55 -06:00
smartreflex.c soc: ti: Remove pm_runtime_irq_safe() usage for smartreflex 2021-08-10 15:51:22 -07:00
ti_sci_inta_msi.c soc: ti: ti_sci_inta_msi: Remove ti_sci_inta_msi_domain_free_irqs() 2021-12-16 22:22:19 +01:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc 2022-06-09 10:25:32 +02:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-08 13:57:46 +02:00