linux/drivers/soc/bcm
QintaoShen b4bd2aafac soc: bcm: Check for NULL return of devm_kzalloc()
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>
2022-04-26 09:12:35 -07:00
..
bcm63xx soc: bcm: Check for NULL return of devm_kzalloc() 2022-04-26 09:12:35 -07:00
brcmstb soc: bcm: brcmstb: Add of_node_put() in pm-mips 2021-11-15 09:57:14 -08:00
bcm2835-power.c This pull request brings in a build fix for arm64 with bcm2835 2019-03-18 10:31:24 -07: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
raspberrypi-power.c soc: bcm: raspberrypi-power: Release firmware handle on unbind 2021-03-22 17:59:51 +01:00