hwmon: (adt7473) Initialize max_duty_at_overheat before use
commited4ec814e45ae8b1596aea0a29b92f6c3614acaa
authorJean Delvare <khali@linux-fr.org>
Sat, 26 Apr 2008 14:34:26 +0000 (26 16:34 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Thu, 19 Jun 2008 10:50:31 +0000 (19 06:50 -0400)
tree05190bbb539e2c383555d46d6302269788dd03ca
parentd38b149794e7444a55e741446717147e7f0467f8
hwmon: (adt7473) Initialize max_duty_at_overheat before use

data->max_duty_at_overheat is not updated in adt7473_update_device,
so it might be used before it is initialized (if the user reads from
sysfs file max_duty_at_crit before writing to it.)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/adt7473.c