linux/drivers/soc/ti
QintaoShen 05efc4591f 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:20:57 +02:00
..
k3-ringacc.c
k3-socinfo.c
Kconfig
knav_dma.c
knav_qmss_acc.c
knav_qmss_queue.c
knav_qmss.h
Makefile
omap_prm.c
pm33xx.c
pruss.c soc: ti: pruss: fix referenced node in error message 2022-01-27 10:54:12 +01:00
smartreflex.c
ti_sci_inta_msi.c
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc 2022-06-09 10:20:57 +02:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-08 14:40:07 +02:00