summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue_types.h
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-05-04 22:53:26 +0800
committerLinus Walleij <linusw@kernel.org>2026-05-05 11:25:46 +0200
commit334f7bcbdc79dc8e5b938ac3372453a5368221cf (patch)
tree208a81995cad478feaf484c33b25c93aed8b91f2 /include/linux/timerqueue_types.h
parent3ca99eed042620d12315e9272ed3ef260ca29877 (diff)
pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path
In the error path of sunxi_pmx_request(), the code calls regulator_put(s_reg->regulator) to release the regulator. However, s_reg->regulator is only assigned after a successful regulator_enable(). This causes a memory leak: the regulator obtained via regulator_get() is never properly released when regulator_enable() fails. Fixes: dc1445584177 ("pinctrl: sunxi: Fix and simplify pin bank regulator handling") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions