From: Jean Delvare Date: Wed, 23 Nov 2005 23:44:31 +0000 (-0800) Subject: [PATCH] hwmon: Fix missing it87 fan div init X-Git-Tag: v2.6.15-rc3~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07eab46db7f78b2ed49bc9e41eda80695f93886f;p=pandora-kernel.git [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 Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed