https://github.com/torvalds/linux
Revision 07eab46db7f78b2ed49bc9e41eda80695f93886f authored by Jean Delvare on 23 November 2005, 23:44:31 UTC, committed by Linus Torvalds on 24 November 2005, 07:04:27 UTC
Fix a bug where setting the low fan speed limits will not work if no
data was ever read through the sysfs interface and the fan clock
dividers have not been explicitely set yet either. The reason is that
data->fan_div[nr] may currently be used before it is initialized from
the chip register values. The fix is to explicitely initialize
data->fan_div[nr] before using it.

Bug reported, and fix tested, by Nicolas Mailhot.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent d0d3cd6
History
Tip revision: 07eab46db7f78b2ed49bc9e41eda80695f93886f authored by Jean Delvare on 23 November 2005, 23:44:31 UTC
[PATCH] hwmon: Fix missing it87 fan div init
Tip revision: 07eab46
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 391 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 63.4 KB
Makefile -rw-r--r-- 42.8 KB
README -rw-r--r-- 14.7 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top