diff options
author | Vitalii Mordan <[email protected]> | 2024-11-21 14:47:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-12-04 16:25:13 +0100 |
commit | 97264eaaba0122a5b7e8ddd7bf4ff3ac57c2b170 (patch) | |
tree | 743d9cadb68358b47fa6d03b7fd86c2046578602 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | cdd30ebb1b9f36159d66f088b61aee264e649d7a (diff) |
usb: ehci-hcd: fix call balance of clocks handling routines
If the clocks priv->iclk and priv->fclk were not enabled in ehci_hcd_sh_probe,
they should not be disabled in any path.
Conversely, if they was enabled in ehci_hcd_sh_probe, they must be disabled
in all error paths to ensure proper cleanup.
Found by Linux Verification Center (linuxtesting.org) with Klever.
Fixes: 63c845522263 ("usb: ehci-hcd: Add support for SuperH EHCI.")
Cc: [email protected] # ff30bd6a6618: sh: clk: Fix clk_enable() to return 0 on NULL clk
Signed-off-by: Vitalii Mordan <[email protected]>
Reviewed-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions