diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-09-14 21:42:20 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-09-14 21:51:49 +0200 |
commit | fb2c10245f201278804a6f28e196e95436059d6d (patch) | |
tree | 305590437cb404ba342ad374b60bdec4a6297786 /drivers/thermal/intel | |
parent | ebc7abb35b258152d4a424f89d7c03db1d7ce61c (diff) | |
download | linux-stable-fb2c10245f201278804a6f28e196e95436059d6d.tar.gz linux-stable-fb2c10245f201278804a6f28e196e95436059d6d.tar.bz2 linux-stable-fb2c10245f201278804a6f28e196e95436059d6d.zip |
thermal: core: Fix disabled trip point check in handle_thermal_trip()
Commit bc840ea5f9a9 ("thermal: core: Do not handle trip points with
invalid temperature") added a check for invalid temperature to the
disabled trip point check in handle_thermal_trip(), but that check was
added at a point when the trip structure has not been initialized yet.
This may cause handle_thermal_trip() to skip a valid trip point in some
cases, so fix it by moving the check to a suitable place, after
__thermal_zone_get_trip() has been called to populate the trip
structure.
Fixes: bc840ea5f9a9 ("thermal: core: Do not handle trip points with invalid temperature")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal/intel')
0 files changed, 0 insertions, 0 deletions