]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: dwc2: Remove unnecessary kfree
authorJohn Youn <johnyoun@synopsys.com>
Fri, 4 Nov 2016 00:55:45 +0000 (17:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:09:12 +0000 (10:09 +0100)
commit cd4b1e34655d46950c065d9284b596cd8d7b28cd upstream.

This shouldn't be freed by the HCD as it is owned by the core and
allocated with devm_kzalloc.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd.c

index e749631d6a97d7c8dae9722f62b76234b96ab17d..a2a95dbacbcfdc8622b18cd946c212eb8c5dcfc5 100644 (file)
@@ -2953,7 +2953,6 @@ error3:
 error2:
        usb_put_hcd(hcd);
 error1:
-       kfree(hsotg->core_params);
 
 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
        kfree(hsotg->last_frame_num_array);