diff options
Diffstat (limited to 'drivers/misc/thinkpad_acpi.c')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 623d36fd8dbe..f74d7d600d83 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -2853,6 +2853,8 @@ static int thermal_get_sensor(int idx, s32 *value) | |||
2853 | snprintf(tmpi, sizeof(tmpi), "TMP%c", '0' + idx); | 2853 | snprintf(tmpi, sizeof(tmpi), "TMP%c", '0' + idx); |
2854 | if (!acpi_evalf(ec_handle, &t, tmpi, "d")) | 2854 | if (!acpi_evalf(ec_handle, &t, tmpi, "d")) |
2855 | return -EIO; | 2855 | return -EIO; |
2856 | if (t > 127 || t < -127) | ||
2857 | t = TP_EC_THERMAL_TMP_NA; | ||
2856 | *value = t * 1000; | 2858 | *value = t * 1000; |
2857 | return 0; | 2859 | return 0; |
2858 | } | 2860 | } |