diff options
author | 2024-11-21 23:06:58 +0300 | |
---|---|---|
committer | 2024-11-26 11:49:51 +0100 | |
commit | b032ae57d4fe2b2445e3bc190db6fcaa8c102f68 (patch) | |
tree | 780efa48685d20ec2f07dc9d61fc606153d9416f /net/lapb/lapb_timer.c | |
parent | net: mdio-ipq4019: add missing error check (diff) | |
download | wireguard-linux-b032ae57d4fe2b2445e3bc190db6fcaa8c102f68.tar.xz wireguard-linux-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 <mordan@ispras.ru>
Link: https://patch.msgid.link/20241121200658.2203871-1-mordan@ispras.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions