commit | cc336546ddca8c22de83720632431c16a5f9fe9a | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu Jul 31 22:27:04 2014 +0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Mon Aug 04 09:15:46 2014 -0700 |
tree | 69eab7de004aca92f6898b7c90df49be0f1172be | |
parent | 2565fb05d1e9fc0831f7b1c083bcfcb1cba1f020 [diff] |
hwmon: (sis5595) Prevent overflow problem when writing large limits On platforms with sizeof(int) < sizeof(long), writing a temperature limit larger than MAXINT will result in unpredictable limit values written to the chip. Avoid auto-conversion from long to int to fix the problem. Signed-off-by: Axel Lin <axel.lin@ingics.com> Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>