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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 231.8 KB
Makefile -rw-r--r-- 46.9 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top