diff options
author | 2022-03-24 16:35:40 +0800 | |
---|---|---|
committer | 2022-04-26 09:12:35 -0700 | |
commit | b4bd2aafacce48db26b0a213d849818d940556dd (patch) | |
tree | 8a25e0ae1ff62fd6a7940d5b5b56a83bbbc94a7e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.18-rc1 (diff) | |
download | linux-dev-b4bd2aafacce48db26b0a213d849818d940556dd.tar.xz linux-dev-b4bd2aafacce48db26b0a213d849818d940556dd.zip |
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: 8bcac4011ebe ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions