hwmon: (aht10) Unlock on error in aht10_read_values()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jan 2021 05:25:26 +0000 (08:25 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:19 +0000 (17:44 -0800)
commitcbfc6c6177f9208762c7c4acec394214b1e8be0c
tree183cb55f0d2d9ee0b55ce620c78d360dfcad77fb
parent86585c61972f0997ed5fef54a2eb5de0b268ad86
hwmon: (aht10) Unlock on error in aht10_read_values()

This error path needs to drop the lock before returning.

Fixes: afd018716398 ("hwmon: Add AHT10 Temperature and Humidity Sensor Driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YBD5Ro549hMJSnW4@mwanda
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aht10.c