https://github.com/torvalds/linux
Revision d3d89c468ceebbcf9423d1a3d66c5bf91f569570 authored by Doug Anderson on 13 February 2014, 22:39:34 UTC, committed by Guenter Roeck on 14 February 2014, 03:43:52 UTC
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>
1 parent b28a960
History
Tip revision: d3d89c468ceebbcf9423d1a3d66c5bf91f569570 authored by Doug Anderson on 13 February 2014, 22:39:34 UTC
hwmon: (ntc_thermistor) Avoid math overflow
Tip revision: d3d89c4
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 266.4 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top