Doug Anderson d3d89c468c hwmon: (ntc_thermistor) Avoid math overflow
The ntc thermistor code was doing math whose temporary result might
have overflowed 32-bits.  We need some casts in there to make it safe.

In one example I found:
- pullup_uV: 1800000
- result of iio_read_channel_raw: 3226
- 1800000 * 3226 => 0x15a1cbc80

Signed-off-by: Doug Anderson <dianders@chromium.org>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2014-02-13 19:43:52 -08:00
..
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2013-10-13 16:16:25 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2013-08-27 08:28:01 -07:00
2014-01-29 20:40:08 +01:00
2013-10-13 16:16:25 -07:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2013-09-11 13:01:31 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2013-08-27 08:28:01 -07:00
2013-06-27 10:29:03 -07:00
2014-01-29 20:40:08 +01:00
2013-10-18 09:12:01 -07:00
2014-01-29 20:40:08 +01:00
2013-03-18 21:19:49 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2013-10-18 09:12:02 -07:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2013-09-11 13:01:41 -07:00
2012-11-28 11:50:34 -08:00
2014-01-29 20:40:08 +01:00
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00