]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
hwmon: (lm80) Fix missing unlock on error in set_fan_div()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Dec 2018 11:28:24 +0000 (11:28 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 7 Jan 2019 03:49:14 +0000 (19:49 -0800)
commit07bd14ccc3049f9c0147a91a4227a571f981601a
treee607e74e5cb860a6e1c6f85a9403c6bd15934ee0
parent9de15c95a63f527c8f7a968cd95e6ec71fc6891d
hwmon: (lm80) Fix missing unlock on error in set_fan_div()

Add the missing unlock before return from function set_fan_div()
in the error handling case.

Fixes: c9c63915519b ("hwmon: (lm80) fix a missing check of the status of SMBus read")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm80.c