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
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 18.4 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 6.0 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 35.1 KB
msg.c -rw-r--r-- 21.1 KB
msgutil.c -rw-r--r-- 2.8 KB
namespace.c -rw-r--r-- 4.6 KB
sem.c -rw-r--r-- 42.3 KB
shm.c -rw-r--r-- 29.9 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 23.1 KB
util.h -rw-r--r-- 5.3 KB

back to top