thermal: underflow bug in imx_set_trip_temp()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Aug 2015 08:49:09 +0000 (11:49 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 30 Oct 2015 18:35:50 +0000 (11:35 -0700)
commit8fb2b9ac2aadd6d87f89071c2c85f8c12b41c943
treeb5baa7bba0813f7643b3e21e8ad6f5b16f9283fd
parentb56100db5b057fef889a73cb66c24633696d188b
thermal: underflow bug in imx_set_trip_temp()

We recently changed this from unsigned long to int so it introduced an
underflow bug.

Fixes: 17e8351a7739 ('thermal: consistently use int for temperatures')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c