Skip to content
Commit cfc826c8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

phy: stm32: fix a refcount leak in stm32_usbphyc_pll_enable()



This error path needs to decrement "usbphyc->n_pll_cons.counter" before
returning.

Fixes: 5b1af712 ("phy: stm32: rework PLL Lock detection")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220112111724.GB3019@kili


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 37291f60
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment