Files
android_kernel_xiaomi_sm8450/drivers
Jia-Ju Bai 997d24a932 thermal: thermal_of: Fix error return code of thermal_of_populate_bind_params()
[ Upstream commit 45c7eaeb29d67224db4ba935deb575586a1fda09 ]

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: a92bab8919 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:13:00 +02:00
..
2021-05-14 09:50:24 +02:00
2021-03-04 11:38:21 +01:00
2020-12-03 10:00:23 +01:00
2021-04-10 13:36:08 +02:00
2021-05-11 14:47:26 +02:00
2020-12-30 11:53:53 +01:00
2021-03-04 11:38:03 +01:00
2021-04-16 11:43:22 +02:00