]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 3 Apr 2019 12:48:33 +0000 (14:48 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit364d411f6de5f74572eb7ca6aff86ee23c2525b5
treea7c1eaa4d5e4282dcc695f64dcd80d835f7e8ac9
parentcb299cfa2bc4bf70a11c4227d805bbf82ffed97e
hwmon: (pwm-fan) Disable PWM if fetching cooling data fails

BugLink: https://bugs.launchpad.net/bugs/1838576
commit 53f1647da3e8fb3e89066798f0fdc045064d353d upstream.

In case pwm_fan_of_get_cooling_data() fails we should disable the PWM
just like in the other error cases.

Fixes: 2e5219c77183 ("hwmon: (pwm-fan) Read PWM FAN configuration from device tree")
Cc: <stable@vger.kernel.org> # 4.14+
Reported-by: Guenter Rock <linux@roeck-us.net>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hwmon/pwm-fan.c