mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 08:14:35 +08:00
phy: stm32: fix a refcount leak in stm32_usbphyc_pll_enable()
[ Upstream commitcfc826c88a
] This error path needs to decrement "usbphyc->n_pll_cons.counter" before returning. Fixes:5b1af71280
("phy: stm32: rework PLL Lock detection") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20220112111724.GB3019@kili Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
541ec7bfee
commit
94b16ca86a
@ -225,7 +225,7 @@ static int stm32_usbphyc_pll_enable(struct stm32_usbphyc *usbphyc)
|
||||
|
||||
ret = __stm32_usbphyc_pll_disable(usbphyc);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto dec_n_pll_cons;
|
||||
}
|
||||
|
||||
ret = stm32_usbphyc_regulators_enable(usbphyc);
|
||||
|
Loading…
Reference in New Issue
Block a user