summaryrefslogtreecommitdiff
path: root/drivers/thermal/cpufreq_cooling.c
diff options
context:
space:
mode:
authorBartosz Szczepanek <bsz@semihalf.com>2020-07-08 15:46:13 +0200
committerZhang Rui <rui.zhang@intel.com>2020-07-14 22:46:44 +0800
commit3ce315a704b4568616d1b14166cff3430ef07d12 (patch)
treecddedab9447086d97122e399055ad3be831104e9 /drivers/thermal/cpufreq_cooling.c
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 (diff)
thermal/int340x_thermal: Prevent page fault on .set_mode() op
Starting from commit "thermal/int340x_thermal: Don't require IDSP to exist", priv->current_uuid_index is initialized to -1. This value may be passed to int3400_thermal_run_osc() from int3400_thermal_set_mode, contributing to page fault when accessing int3400_thermal_uuids array at index -1. This commit adds a check on uuid value to int3400_thermal_run_osc. Fixes: 8d485da0ddee ("thermal/int340x_thermal: Don't require IDSP to exist") Signed-off-by: Bartosz Szczepanek <bsz@semihalf.com> Reviewed-by: Pandruvada, Srinivas <srinivas.pandruvada@linux.intel.com> [ rzhang: Add Fixes tag ] Signed-off-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20200708134613.131555-1-bsz@semihalf.com
Diffstat (limited to 'drivers/thermal/cpufreq_cooling.c')
0 files changed, 0 insertions, 0 deletions