aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorVitalii Mordan <[email protected]>2024-11-21 20:06:58 +0000
committerPaolo Abeni <[email protected]>2024-11-26 10:49:51 +0000
commitb032ae57d4fe2b2445e3bc190db6fcaa8c102f68 (patch)
tree780efa48685d20ec2f07dc9d61fc606153d9416f /drivers/fpga/altera-fpga2sdram.c
parentnet: mdio-ipq4019: add missing error check (diff)
downloadkernel-b032ae57d4fe2b2445e3bc190db6fcaa8c102f68.tar.gz
kernel-b032ae57d4fe2b2445e3bc190db6fcaa8c102f68.zip
marvell: pxa168_eth: fix call balance of pep->clk handling routines
If the clock pep->clk was not enabled in pxa168_eth_probe, it should not be disabled in any path. Conversely, if it was enabled in pxa168_eth_probe, it must be disabled in all error paths to ensure proper cleanup. Use the devm_clk_get_enabled helper function to ensure proper call balance for pep->clk. Found by Linux Verification Center (linuxtesting.org) with Klever. Fixes: a49f37eed22b ("net: add Fast Ethernet driver for PXA168.") Signed-off-by: Vitalii Mordan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions