]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: cdns3: plat: fix leaked role switch on core role initialization failure
authorPeter Chen <peter.chen@cixtech.com>
Thu, 14 May 2026 01:01:14 +0000 (09:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 09:34:44 +0000 (11:34 +0200)
commite663be4218d32d5d58374f8bed5bdfe3d2161932
treeb105fc5cd344f5a0c1e5f346a8fd81db506c643a
parent5bf5e3fba9bc7dfd69701521dbe9809f8ccbdb02
usb: cdns3: plat: fix leaked role switch on core role initialization failure

Calling usb_role_switch_unregister if core role initialization failure.

Fixes: e4d7362dc9cd ("usb: cdns3: Add USBSSP platform driver support")
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/20260514010114.2436781-2-peter.chen@cixtech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdns3-plat.c