https://github.com/torvalds/linux
Revision 86266ca0e23b2b8e7e38edda1675cd085a9abc14 authored by Guenter Roeck on 19 December 2012, 02:16:08 UTC, committed by Guenter Roeck on 22 December 2012, 10:16:40 UTC
Result of DIV_ROUND_CLOSEST is undefined for negative dividends if the divisor
variable type is unsigned. Fix by declaring divisor as signed variable.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
1 parent 0602934
History
Tip revision: 86266ca0e23b2b8e7e38edda1675cd085a9abc14 authored by Guenter Roeck on 19 December 2012, 02:16:08 UTC
hwmon: (emc6w201) Fix DIV_ROUND_CLOSEST problem with unsigned divisors
Tip revision: 86266ca
File Mode Size
kvm

back to top