mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 11:45:53 -05:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
In __cpufreq_cooling_register() we allocate the arrays for time_in_idle
and time_in_idle_timestamp to be as big as the number of cpus in this
cpufreq device. However, in get_load() we access this array using the
cpu number as index, which can result in an out of bound access.
Index time_in_idle{,_timestamp} using the index in the cpufreq_device's
allowed_cpus mask, as we do for the load_cpu array in
cpufreq_get_requested_power()
Reported-by: Nicolas Boichat <[email protected]>
Cc: Amit Daniel Kachhap <[email protected]>
Cc: Zhang Rui <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Tested-by: Nicolas Boichat <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Javi Merino <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
|
||
| .. | ||
| int340x_thermal | ||
| samsung | ||
| st | ||
| ti-soc-thermal | ||
| armada_thermal.c | ||
| clock_cooling.c | ||
| cpu_cooling.c | ||
| db8500_cpufreq_cooling.c | ||
| db8500_thermal.c | ||
| devfreq_cooling.c | ||
| dove_thermal.c | ||
| fair_share.c | ||
| gov_bang_bang.c | ||
| hisi_thermal.c | ||
| imx_thermal.c | ||
| intel_pch_thermal.c | ||
| intel_powerclamp.c | ||
| intel_quark_dts_thermal.c | ||
| intel_soc_dts_iosf.c | ||
| intel_soc_dts_iosf.h | ||
| intel_soc_dts_thermal.c | ||
| Kconfig | ||
| kirkwood_thermal.c | ||
| Makefile | ||
| of-thermal.c | ||
| power_allocator.c | ||
| qcom-spmi-temp-alarm.c | ||
| rcar_thermal.c | ||
| rockchip_thermal.c | ||
| spear_thermal.c | ||
| step_wise.c | ||
| tegra_soctherm.c | ||
| thermal_core.c | ||
| thermal_core.h | ||
| thermal_hwmon.c | ||
| thermal_hwmon.h | ||
| user_space.c | ||
| x86_pkg_temp_thermal.c | ||