]> git.baikalelectronics.ru Git - kernel.git/commit
phy: stm32: fix a refcount leak in stm32_usbphyc_pll_enable()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jan 2022 11:17:24 +0000 (14:17 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 27 Jan 2022 05:34:40 +0000 (11:04 +0530)
commit0fc6cd1b58f71a5bc87396bfa6e98f320a9cb52b
treec537fb9d35151d89e577751fc5cdb599b03785c0
parentb56453370b797850309ce0482e330be2acc0db88
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: 3bb6c2461fdf ("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>
drivers/phy/st/phy-stm32-usbphyc.c