Skip to contentSkip to conversation

hwmon: (sis5595) Prevent overflow problem when writing large limits

PATCH Guenter Roeck 1 participant 1 message Aug 4, 2014

lore
Share & tools
lore

Guenter Roeck

author Applied
#0 lore raw
Quoted 6 lines · Axel Lin

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.

Applied.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors