diff options
-rw-r--r-- | drivers/thermal/thermal_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 43b90709585f..5aa57736fa9e 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c | |||
@@ -368,7 +368,7 @@ static void handle_critical_trips(struct thermal_zone_device *tz, | |||
368 | tz->ops->get_trip_temp(tz, trip, &trip_temp); | 368 | tz->ops->get_trip_temp(tz, trip, &trip_temp); |
369 | 369 | ||
370 | /* If we have not crossed the trip_temp, we do not care. */ | 370 | /* If we have not crossed the trip_temp, we do not care. */ |
371 | if (tz->temperature < trip_temp) | 371 | if (trip_temp <= 0 || tz->temperature < trip_temp) |
372 | return; | 372 | return; |
373 | 373 | ||
374 | trace_thermal_zone_trip(tz, trip, trip_type); | 374 | trace_thermal_zone_trip(tz, trip, trip_type); |