linux-stable/drivers/soc/bcm/bcm63xx
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
..
Kconfig
Makefile
bcm-pmb.c soc: bcm: Check for NULL return of devm_kzalloc() 2022-04-26 09:12:35 -07:00
bcm63xx-power.c soc: bcm63xx-power: Make use of the helper function devm_platform_ioremap_resource() 2021-09-14 14:37:42 -07:00