diff options
author | 2024-01-17 10:12:20 +0300 | |
---|---|---|
committer | 2024-01-23 11:37:14 +0530 | |
commit | f661017e6d326ee187db24194cabb013d81bc2a6 (patch) | |
tree | 282112f471fc98b00eb47298eee93f5e820a0cac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpufreq: imx6: use regmap to read ocotp register (diff) | |
download | wireguard-linux-f661017e6d326ee187db24194cabb013d81bc2a6.tar.xz wireguard-linux-f661017e6d326ee187db24194cabb013d81bc2a6.zip |
cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value
cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it
and return 0 in case of error.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions