diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-11-23 15:44:31 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-23 23:04:27 -0800 |
commit | 07eab46db7f78b2ed49bc9e41eda80695f93886f (patch) | |
tree | edcde79443d524afd150770ea2f6a1877a858244 /drivers/hwmon/hdaps.c | |
parent | d0d3cd6965d8e957764663cbb5aaa5ff486a2616 (diff) | |
download | blackbird-op-linux-07eab46db7f78b2ed49bc9e41eda80695f93886f.tar.gz blackbird-op-linux-07eab46db7f78b2ed49bc9e41eda80695f93886f.zip |
[PATCH] hwmon: Fix missing it87 fan div init
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>
Diffstat (limited to 'drivers/hwmon/hdaps.c')
0 files changed, 0 insertions, 0 deletions