diff options
author | Anastasia Belova <abelova@astralinux.ru> | 2024-08-26 16:38:41 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-09-04 20:43:59 +0530 |
commit | 5493f9714e4cdaf0ee7cec15899a231400cb1a9f (patch) | |
tree | 8e9afc014bcbbf61c25be301836a5ea2ca0b213d /lib/glob.c | |
parent | b14ceb82c3a1b6f1422af4ea7a2a686dbaf0a094 (diff) |
cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value
cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it
and return in case of error.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'lib/glob.c')
0 files changed, 0 insertions, 0 deletions