diff options
author | 2021-03-10 04:24:23 -0800 | |
---|---|---|
committer | 2021-03-10 13:41:33 +0100 | |
commit | 45c7eaeb29d67224db4ba935deb575586a1fda09 (patch) | |
tree | 4cc80358b614661748e0657d8340fb132bd3e8b9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | thermal:ti-soc-thermal: Remove duplicate include in ti-bandgap (diff) | |
download | linux-dev-45c7eaeb29d67224db4ba935deb575586a1fda09.tar.xz linux-dev-45c7eaeb29d67224db4ba935deb575586a1fda09.zip |
thermal: thermal_of: Fix error return code of thermal_of_populate_bind_params()
When kcalloc() returns NULL to __tcbp or of_count_phandle_with_args()
returns zero or -ENOENT to count, no error return code of
thermal_of_populate_bind_params() is assigned.
To fix these bugs, ret is assigned with -ENOMEM and -ENOENT in these
cases, respectively.
Fixes: a92bab8919e3 ("of: thermal: Allow multiple devices to share cooling map")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210310122423.3266-1-baijiaju1990@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions