diff options
author | 2024-11-15 02:03:10 +0300 | |
---|---|---|
committer | 2024-11-16 09:04:06 +0100 | |
commit | 40c974826734836402abfd44efbf04f63a2cc1c1 (patch) | |
tree | 44b0d3eca7830746afa3babea63b6dbc992fe477 /scripts/lib/kdoc/kdoc_parser.py | |
parent | Merge tag 'usb-serial-6.13-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next (diff) | |
download | wireguard-linux-40c974826734836402abfd44efbf04f63a2cc1c1.tar.xz wireguard-linux-40c974826734836402abfd44efbf04f63a2cc1c1.zip |
usb: ehci-spear: fix call balance of sehci clk handling routines
If the clock sehci->clk was not enabled in spear_ehci_hcd_drv_probe,
it should not be disabled in any path.
Conversely, if it was enabled in spear_ehci_hcd_drv_probe, it must be disabled
in all error paths to ensure proper cleanup.
Found by Linux Verification Center (linuxtesting.org) with Klever.
Fixes: 7675d6ba436f ("USB: EHCI: make ehci-spear a separate driver")
Cc: stable@vger.kernel.org
Signed-off-by: Vitalii Mordan <mordan@ispras.ru>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20241114230310.432213-1-mordan@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions