Skip to content
Commit 5a80589c authored by Yinhao Hu's avatar Yinhao Hu Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: fix missing goto in `ci_hdrc_probe`

[ Upstream commit d6f712f5 ]

From the comment of ci_usb_phy_init, it returns an error code if
usb_phy_init has failed, and it should do some clean up, not just
return directly.

Fix this by goto the error handling.

Fixes: 74475ede

 ("usb: chipidea: move PHY operation to core")
Reviewed-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Acked-by: default avatarPeter Chen <peter.chen@kernel.org>
Signed-off-by: default avatarYinhao Hu <dddddd@hust.edu.cn>
Link: https://lore.kernel.org/r/20230412055852.971991-1-dddddd@hust.edu.cn
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fffc3079
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment