Skip to content
Commit fb2c1024 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

thermal: core: Fix disabled trip point check in handle_thermal_trip()

Commit bc840ea5 ("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: bc840ea5

 ("thermal: core: Do not handle trip points with invalid temperature")
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ebc7abb3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment