Commit 14a3864f authored by John Youn's avatar John Youn Committed by Stefan Bader

usb: dwc2: Remove unnecessary kfree

BugLink: https://bugs.launchpad.net/bugs/1818813

commit cd4b1e34 upstream.

This shouldn't be freed by the HCD as it is owned by the core and
allocated with devm_kzalloc.
Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 2c6af287
...@@ -3164,7 +3164,6 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq) ...@@ -3164,7 +3164,6 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
error2: error2:
usb_put_hcd(hcd); usb_put_hcd(hcd);
error1: error1:
kfree(hsotg->core_params);
#ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
kfree(hsotg->last_frame_num_array); kfree(hsotg->last_frame_num_array);
......
Markdown is supported
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