linux-stable/drivers/regulator
Yang Yingliang 68c4ab962d regulator: core: fix module refcount leak in set_supply()
[ Upstream commit da46ee19cb ]

If create_regulator() fails in set_supply(), the module refcount
needs be put to keep refcount balanced.

Fixes: e2c09ae7a7 ("regulator: core: Increase refcount for regulator supply's module")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221201122706.4055992-2-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 12:07:19 +01:00
..
88pm800.c
88pm8607.c
Kconfig - Core Frameworks 2016-10-07 08:35:35 -07:00
Makefile regulator: Add LTC3676 support 2016-08-16 12:28:00 +01:00
aat2870-regulator.c
ab3100.c
ab8500-ext.c ARM: ux500: move ab8500_regulator_plat_data into driver 2016-07-12 11:23:50 +02:00
ab8500.c regulator: ab8500: Remove AB8505 USB regulator 2020-01-12 11:24:17 +01:00
act8865-regulator.c regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting 2019-04-05 22:29:14 +02:00
act8945a-regulator.c
ad5398.c
anatop-regulator.c regulator: anatop: set default voltage selector for pcie 2018-03-24 11:00:09 +01:00
arizona-ldo1.c
arizona-micsupp.c
as3711-regulator.c
as3722-regulator.c regulator: as3722: Constify regulator ops 2016-04-11 15:15:36 +01:00
axp20x-regulator.c regulator: axp20x: Fix reference cout leak 2021-03-03 17:44:37 +01:00
bcm590xx-regulator.c
core.c regulator: core: fix module refcount leak in set_supply() 2023-01-07 12:07:19 +01:00
da903x.c
da9052-regulator.c regulator: da9052: Ensure enough delay time for .set_voltage_time_sel 2021-07-20 16:20:59 +02:00
da9055-regulator.c
da9062-regulator.c
da9063-regulator.c regulator: da9063: Correct module alias prefix to fix module autoloading 2016-05-10 20:00:49 +01:00
da9210-regulator.c regulator: da9210: addition of device tree support 2016-07-15 11:45:26 +01:00
da9210-regulator.h
da9211-regulator.c regulator: da9211: add descriptions for da9212/da9214 2016-06-29 17:24:55 +01:00
da9211-regulator.h regulator: da9211: add descriptions for da9212/da9214 2016-06-29 17:24:55 +01:00
db8500-prcmu.c
dbx500-prcmu.c regulator: dbx500: remove unused functions in dbx500-prcmu.c 2016-09-26 09:40:22 -07:00
dbx500-prcmu.h
devres.c regulator: Remove support for optional supplies in the bulk API 2016-08-16 20:00:44 +01:00
dummy.c
dummy.h
fan53555.c regulator: fan53555: fix I2C device ids 2017-11-02 09:49:15 +01:00
fixed-helper.c
fixed.c regulator: fixed: Remove workaround to handle of_get_named_gpio() return 2016-05-30 16:29:34 +01:00
gpio-regulator.c regulator: gpio: Fix some error handling paths in 'gpio_regulator_probe()' 2018-05-30 07:50:45 +02:00
helpers.c regulators: helpers: Fix handling of bypass_val_on in get_bypass_regmap 2017-01-19 20:18:06 +01:00
hi655x-regulator.c
hi6421-regulator.c regulator: hi6421: mark hi6421_regulator_ldo_get_optimum_mode() static 2016-09-01 20:54:29 +01:00
internal.h
isl6271a-regulator.c
isl9305.c
lm363x-regulator.c regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg 2019-10-05 12:30:16 +02:00
lp872x.c
lp873x-regulator.c regulator: lp873x: Drop _nlr parameter from LP873X_REGULATOR() 2016-06-21 18:43:48 +01:00
lp3971.c regulator: lp3971: Silence uninitialized variable warning 2016-04-14 14:46:05 +01:00
lp3972.c regulator: lp3972: Silence uninitialized variable warning 2016-04-14 14:46:19 +01:00
lp8755.c
lp8788-buck.c
lp8788-ldo.c
ltc3589.c
ltc3676.c regulator: Add LTC3676 support 2016-08-16 12:28:00 +01:00
max1586.c
max8649.c
max8660.c
max8907-regulator.c regulator: max8907: Fix the usage of uninitialized variable in max8907_regulator_probe() 2020-01-04 13:39:15 +01:00
max8925-regulator.c
max8952.c
max8973-regulator.c thermal: Enhance thermal_zone_device_update for events 2016-09-27 14:35:21 +08:00
max8997-regulator.c
max8998.c
max14577-regulator.c regulator: Change Krzysztof Kozlowski's email to kernel.org 2016-08-17 13:41:14 +01:00
max77620-regulator.c regulator: max77620: check for valid regulator info 2016-06-29 18:50:05 +01:00
max77686-regulator.c regulator: max77686: Configure enable time to properly handle regulator enable 2016-04-29 12:31:39 +01:00
max77693-regulator.c regulator: Change Krzysztof Kozlowski's email to kernel.org 2016-08-17 13:41:14 +01:00
max77802-regulator.c
mc13xxx-regulator-core.c
mc13xxx.h
mc13783-regulator.c
mc13892-regulator.c
mt6311-regulator.c
mt6311-regulator.h
mt6323-regulator.c regulator: mt6323: Constify struct regulator_ops 2016-07-19 18:31:59 +01:00
mt6397-regulator.c regulator: mt6397: Add buck change mode regulator interface for mt6397 2016-05-30 16:29:43 +01:00
of_regulator.c regulator: of: Add a missing 'of_node_put()' in an error handling path of 'of_regulator_match()' 2018-05-30 07:50:51 +02:00
palmas-regulator.c drivers/regulator: fix a missing check of return value 2019-12-05 15:34:40 +01:00
pbias-regulator.c
pcap-regulator.c
pcf50633-regulator.c
pfuze100-regulator.c regulator: pfuze100: Fix refcount leak in pfuze_parse_regulators_dt 2022-06-14 16:52:32 +02:00
pv88060-regulator.c regulator: pv88060: Fix array out-of-bounds access 2020-01-29 10:24:16 +01:00
pv88060-regulator.h
pv88080-regulator.c regulator: pv88080: Fix array out-of-bounds access 2020-01-29 10:24:16 +01:00
pv88080-regulator.h regulator: pv88080: Update regulator for PV88080 BB silicon support 2016-09-26 08:59:08 -07:00
pv88090-regulator.c regulator: pv88090: Fix array out-of-bounds access 2020-01-29 10:24:16 +01:00
pv88090-regulator.h
pwm-regulator.c regulator: core: Add set_voltage_time op 2016-09-16 18:38:22 +01:00
qcom_rpm-regulator.c regulator: qcom_rpm: Fix circular deferral regression 2022-10-26 13:15:37 +02:00
qcom_smd-regulator.c regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo 2016-08-05 12:51:51 +01:00
qcom_spmi-regulator.c regulator: qcom_spmi: Add support for get_mode/set_mode on switches 2016-06-26 12:24:07 +01:00
rc5t583-regulator.c
rk808-regulator.c regulator: rk808: Lower log level on optional GPIOs being not available 2020-02-28 15:42:23 +01:00
rn5t618-regulator.c regulator: rn5t618: fix module aliases 2020-01-12 11:24:23 +01:00
rt5033-regulator.c
s2mpa01.c regulator: s2mpa01: Fix step values for some LDOs 2019-03-23 13:19:46 +01:00
s2mps11.c regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2019-08-04 09:33:26 +02:00
s5m8767.c regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2021-11-26 11:48:22 +01:00
sky81452-regulator.c
stw481x-vmmc.c regulator: stw481x-vmmc: fix ages old enable error 2017-01-09 08:32:17 +01:00
ti-abb-regulator.c regulator: ti-abb: Fix array out of bound read access on the first transition 2020-11-24 13:03:04 +01:00
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c regulator: tps6524x: Fix broken use of spi_dev_get() 2016-04-20 17:37:59 +01:00
tps6586x-regulator.c
tps51632-regulator.c regulator: tps51632: Fix setting ramp delay 2016-05-31 16:38:01 +01:00
tps62360-regulator.c
tps65023-regulator.c regulator: tps65023: Fix inverted core enable logic. 2017-05-25 15:44:35 +02:00
tps65086-regulator.c regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB 2020-01-29 10:24:19 +01:00
tps65090-regulator.c
tps65217-regulator.c regulator: tps65217: Enable suspend configuration 2016-06-27 17:56:43 +01:00
tps65218-regulator.c regulator: tps65218: do not disable DCDC3 during poweroff on broken PMICs 2016-08-10 18:21:55 +01:00
tps65910-regulator.c regulator: tps65910: fix a missing check of return value 2019-12-05 15:34:50 +01:00
tps65912-regulator.c
tps80031-regulator.c
twl-regulator.c regulator: twl: fix use of integer as pointer 2016-06-08 18:18:24 +01:00
userspace-consumer.c
vexpress-regulator.c
virtual.c
wm831x-dcdc.c regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA 2020-01-29 10:24:18 +01:00
wm831x-isink.c
wm831x-ldo.c
wm8350-regulator.c
wm8400-regulator.c
wm8994-regulator.c