hwmon: gigabyte_waterforce: Fix locking bug in waterforce_get_status()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Mon, 22 Jan 2024 15:49:52 +0000 (07:49 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 26 Jan 2024 18:39:53 +0000 (10:39 -0800)
commit97aab852c4b9e1b378de48a55f8c9b8d76c36ccc
treefa7dec8628643358a636723a67cdea2ce2a7ee95
parent6613476e225e090cc9aad49be7fa504e290dd33d
hwmon: gigabyte_waterforce: Fix locking bug in waterforce_get_status()

Goto 'unlock_and_return' for unlocking before returning on the error
path.

Fixes: d5939a793693 ("hwmon: Add driver for Gigabyte AORUS Waterforce AIO coolers")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Aleksa Savic <savicaleksa83@gmail.com>
Link: https://lore.kernel.org/r/20240122154952.2851934-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gigabyte_waterforce.c