hwmon: (sht15) Fix integer overflow in humidity calculation
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 21 Mar 2011 16:59:35 +0000 (17:59 +0100)
committerJean Delvare <khali@endymion.delvare>
Mon, 21 Mar 2011 16:59:35 +0000 (17:59 +0100)
commitccd32e735de7a941906e093f8dca924bb05c5794
tree0917acbefbf51c669d4cae75daae2f5abccfbdaa
parent396bd766a604b823369962ee0203c603b9c0bdec
hwmon: (sht15) Fix integer overflow in humidity calculation

An integer overflow occurs in the calculation of RHlinear when the
relative humidity is greater than around 30%. The consequence is a subtle
(but noticeable) error in the resulting humidity measurement.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
Cc: Jonathan Cameron <jic23@cam.ac.uk>
drivers/hwmon/sht15.c