Commit 94ce24b0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Treehugger Robot
Browse files

BACKPORT: usb: dwc3: core: fix some leaks in probe



The dwc3_get_properties() function calls:

	dwc->usb_psy = power_supply_get_by_name(usb_psy_name);

so there is some additional clean up required on these error paths.

Bug: 254441685
Fixes: 6f0764b5 ("usb: dwc3: add a power supply for current control")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YyxFYFnP53j9sCg+@kili


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2a735e4b)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ic8833e7db878998bb88baaf6d396aa8dcfd4984f
parent e1b3243f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment