From: Guenter Roeck Date: Sun, 20 Nov 2016 18:37:39 +0000 (-0800) Subject: hwmon: (ds620) Fix overflows seen when writing temperature limits X-Git-Tag: v3.2.87~165 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccdf4bdd4777130a022e89592827a5f4a6253547;p=pandora-kernel.git hwmon: (ds620) Fix overflows seen when writing temperature limits commit e36ce99ee0815d7919a7b589bfb66f3de50b6bc7 upstream. Module test reports: temp1_max: Suspected overflow: [160000 vs. 0] temp1_min: Suspected overflow: [160000 vs. 0] This is seen because the values passed when writing temperature limits are unbound. Reviewed-by: Jean Delvare Fixes: 6099469805c2 ("hwmon: Support for Dallas Semiconductor DS620") Signed-off-by: Guenter Roeck Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed