diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2019-02-16 20:06:23 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-18 07:57:38 +0300 |
commit | 5ae06c237fd05a1e9acf6f35891cfd85de792521 (patch) | |
tree | 5dc3791fcfe79daf0c69a37fbf0eaa9c3b637568 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2814335cb3c8b364dcc740b6317bd3297e81995c (diff) | |
download | linux-5ae06c237fd05a1e9acf6f35891cfd85de792521.tar.xz |
cpufreq: powernv: fix missing check of return value in init_powernv_pstates()
kmalloc() could fail, so insert a check of its return value. And
if it fails, returns -ENOMEM.
And remove (struct pstate_idx_revmap_data *) to fix coccinelle WARNING
by the way.
WARNING: casting value returned by memory allocation function to (struct
pstate_idx_revmap_data *) is useless.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
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