mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
regulator: core: fix module refcount leak in set_supply()
[ Upstream commitda46ee19cb] 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>
This commit is contained in:
parent
66976a3be9
commit
91657ec4d0
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue