]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
hwmon: (it87) Ensure that pwm control cache is current before updating values
authorGuenter Roeck <linux@roeck-us.net>
Wed, 8 Feb 2017 22:02:59 +0000 (14:02 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitf7c93e0314598d94173bae9c950539066dd3ff46
tree4b31e2c7ece4b28df338b00a9c4da5562c84e64a
parente670815c0036795688d27c261ea30c04e92a45b2
hwmon: (it87) Ensure that pwm control cache is current before updating values

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 82dbe987b70042b340f851bdc969a971081e5f02 upstream.

If sensor attributes were never read, the pwm control data has not been
initiialized, which can cause wrong driver behavior. Ensure that cached
data is current before acting on it.

Reported-by: Kevin Folz <kfolz@evertz.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hwmon/it87.c