Files
i2som-imx-linux/drivers/hwmon
Doug Anderson 600b64afd7 hwmon: (ntc_thermistor) Avoid math overflow
commit d3d89c468c upstream.

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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-22 12:41:27 -08:00
..
2013-05-04 14:46:28 -04:00
2013-04-07 21:16:41 -07:00
2013-02-06 09:58:07 -08:00
2013-03-18 21:19:49 +01:00
2013-04-07 21:16:42 -07:00