]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: axp20x: Fix reference cout leak
authorPan Bian <bianpan2016@163.com>
Wed, 20 Jan 2021 12:33:13 +0000 (04:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 15:44:18 +0000 (16:44 +0100)
commit0213f338da8063f3bb4db0fb20fec1594f3c4e67
treef6cb097887c00b29e28b1fdf464d9f1c3fca5393
parentda3f0e7b38984eaaef8650d6c82738f986b007a4
regulator: axp20x: Fix reference cout leak

[ Upstream commit e78bf6be7edaacb39778f3a89416caddfc6c6d70 ]

Decrements the reference count of device node and its child node.

Fixes: dfe7a1b058bb ("regulator: AXP20x: Add support for regulators subsystem")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210120123313.107640-1-bianpan2016@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/axp20x-regulator.c