]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: cdns3: plat: fix leaked usb2_phy initialization on usb3_phy acquisition failure
authorPeter Chen <peter.chen@cixtech.com>
Wed, 13 May 2026 08:53:09 +0000 (16:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 14:56:06 +0000 (16:56 +0200)
commite6970cda63fd4b4546aeed9d0e2f53a7c95cd09c
tree71a52e6c2536be764392d2432ce0ae46378a6d0e
parentca927fc45e4906bdab42426da044fba4d3584f34
usb: cdns3: plat: fix leaked usb2_phy initialization on usb3_phy acquisition failure

Move usb2_phy initialization after usb3_phy acquisition.

Fixes: f738957277ba ("usb: cdns3: Split core.c into cdns3-plat and core.c file")
Cc: stable <stable@kernel.org>
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/linux-devicetree/agKaEePSFknhDBg2@nchen-desktop/T/#m21e1d9c1574eb127ce03c0c2a1a49002ce435b52
Signed-off-by: Peter Chen <peter.chen@cixtech.com>
Link: https://patch.msgid.link/20260513085310.2217547-2-peter.chen@cixtech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdns3-plat.c