]> err.no Git - linux-2.6/commit
hwmon: (adt7473) Initialize max_duty_at_overheat before use
authorJean Delvare <khali@linux-fr.org>
Sat, 26 Apr 2008 14:34:26 +0000 (16:34 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Thu, 19 Jun 2008 10:50:31 +0000 (06:50 -0400)
commited4ec814e45ae8b1596aea0a29b92f6c3614acaa
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