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
apparmor
integrity
keys
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 5.7 KB
Makefile -rw-r--r-- 1.0 KB
capability.c -rw-r--r-- 23.5 KB
commoncap.c -rw-r--r-- 28.1 KB
device_cgroup.c -rw-r--r-- 14.7 KB
inode.c -rw-r--r-- 6.7 KB
lsm_audit.c -rw-r--r-- 9.3 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 34.7 KB

back to top