linux-stable/drivers/soc/bcm
QintaoShen 36339ea7ba soc: bcm: Check for NULL return of devm_kzalloc()
[ Upstream commit b4bd2aafac ]

As the potential failure of allocation, devm_kzalloc() may return NULL.  Then
the 'pd->pmb' and the follow lines of code may bring null pointer dereference.

Therefore, it is better to check the return value of devm_kzalloc() to avoid
this confusion.

Fixes: 8bcac4011e ("soc: bcm: add PM driver for Broadcom's PMB")
Signed-off-by: QintaoShen <unSimple1993@163.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:26:03 +02:00
..
bcm63xx soc: bcm: Check for NULL return of devm_kzalloc() 2022-06-09 10:26:03 +02:00
brcmstb soc: bcm: brcmstb: Add of_node_put() in pm-mips 2021-11-15 09:57:14 -08:00
Kconfig soc: bcm: add BCM63xx power domain driver 2020-08-17 09:14:04 -07:00
Makefile soc: bcm: add PM driver for Broadcom's PMB 2021-01-12 20:45:57 -08:00
bcm2835-power.c
raspberrypi-power.c soc: bcm: raspberrypi-power: Release firmware handle on unbind 2021-03-22 17:59:51 +01:00