diff options
author | Vitalii Mordan <[email protected]> | 2024-11-08 20:33:34 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-11-13 19:52:24 -0800 |
commit | 5b366eae71937ae7412365340b431064625f9617 (patch) | |
tree | ef26a5510c5de03444e8cd15bff2ce04a4afb79a /lib/memory-notifier-error-inject.c | |
parent | eb94b7bb10109a14a5431a67e5d8e31cfa06b395 (diff) |
stmmac: dwmac-intel-plat: fix call balance of tx_clk handling routines
If the clock dwmac->tx_clk was not enabled in intel_eth_plat_probe,
it should not be disabled in any path.
Conversely, if it was enabled in intel_eth_plat_probe, it must be disabled
in all error paths to ensure proper cleanup.
Found by Linux Verification Center (linuxtesting.org) with Klever.
Fixes: 9efc9b2b04c7 ("net: stmmac: Add dwmac-intel-plat for GBE driver")
Signed-off-by: Vitalii Mordan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions