An error occurred while fetching folder content.
hwmon: (jc42) Fix missing unlock on error in jc42_write()
Yang Yingliang authored
[ Upstream commit b744db17

 ]

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

Fixes: 37dedaee8bc6 ("hwmon: (jc42) Convert register access and caching to regmap/regcache")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20221027062931.598247-1-yangyingliang@huawei.com

Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
48c509f3
Name Last commit Last update
..
occ Merge tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
peci hwmon: (dimmtemp) Fix bitmap handling
pmbus Revert "hwmon: (pmbus) Add regulator supply into macro"
Kconfig hwmon: (jc42) Convert register access and caching to regmap/regcache
Makefile drivers: hwmon: Add max31760 fan speed controller driver
abituguru.c hwmon: (abitguru) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
abituguru3.c hwmon: (abitguru3) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
acpi_power_meter.c Merge tag 'hwmon-for-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
ad7314.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149
ad7414.c hwmon: cleanup non-bool "valid" data fields
ad7418.c hwmon: cleanup non-bool "valid" data fields
adc128d818.c Merge tag 'hwmon-for-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
adcxx.c spi: make remove callback a void function
adm1021.c hwmon: move from strlcpy with unused retval to strscpy
adm1025.c hwmon: move from strlcpy with unused retval to strscpy
adm1026.c hwmon: move from strlcpy with unused retval to strscpy
adm1029.c hwmon: move from strlcpy with unused retval to strscpy
adm1031.c hwmon: move from strlcpy with unused retval to strscpy
adm1177.c hwmon: (adm1177) Fix kerneldoc attribute formatting
adm9240.c hwmon: (adm9240) fix data race in adm9240_fan_read
ads7828.c hwmon: use simple i2c probe function (take 2)
ads7871.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 51
adt7310.c hwmon: (adt7x10) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
adt7410.c hwmon: (adt7x10) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
adt7411.c hwmon: move from strlcpy with unused retval to strscpy
adt7462.c
adt7470.c
adt7475.c
adt7x10.c
adt7x10.h
aht10.c
amc6821.c
applesmc.c
aquacomputer_d5next.c
as370-hwmon.c
asb100.c
asc7621.c
aspeed-pwm-tacho.c
asus-ec-sensors.c
asus_atk0110.c
asus_wmi_sensors.c
atxp1.c
axi-fan-control.c
bt1-pvt.c
bt1-pvt.h
coretemp.c
corsair-cpro.c
corsair-psu.c
da9052-hwmon.c
da9055-hwmon.c
dell-smm-hwmon.c
dme1737.c
drivetemp.c
ds1621.c
ds620.c
emc1403.c
emc2103.c
emc2305.c
emc6w201.c
f71805f.c
f71882fg.c
f75375s.c
fam15h_power.c
fschmd.c
ftsteutates.c
g760a.c
g762.c
gl518sm.c
gl520sm.c
gpio-fan.c
gsc-hwmon.c
hih6130.c
hwmon-vid.c
hwmon.c
i5500_temp.c
i5k_amb.c
ibmaem.c
ibmpex.c
ibmpowernv.c
iio_hwmon.c
ina209.c
ina238.c
ina2xx.c
ina3221.c
intel-m10-bmc-hwmon.c
it87.c
jc42.c
k10temp.c
k8temp.c
lan966x-hwmon.c
lineage-pem.c
lm63.c
lm70.c
lm73.c
lm75.c
lm75.h
lm77.c
lm78.c
lm80.c
lm83.c