050-usb-dwc2-Remove-unnecessary-kfree.patch 709 B

123456789101112131415161718192021222324
  1. From cd4b1e34655d46950c065d9284b596cd8d7b28cd Mon Sep 17 00:00:00 2001
  2. From: John Youn <johnyoun@synopsys.com>
  3. Date: Thu, 3 Nov 2016 17:55:45 -0700
  4. Subject: [PATCH] usb: dwc2: Remove unnecessary kfree
  5. This shouldn't be freed by the HCD as it is owned by the core and
  6. allocated with devm_kzalloc.
  7. Signed-off-by: John Youn <johnyoun@synopsys.com>
  8. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  9. ---
  10. drivers/usb/dwc2/hcd.c | 1 -
  11. 1 file changed, 1 deletion(-)
  12. --- a/drivers/usb/dwc2/hcd.c
  13. +++ b/drivers/usb/dwc2/hcd.c
  14. @@ -5202,7 +5202,6 @@ error3:
  15. error2:
  16. usb_put_hcd(hcd);
  17. error1:
  18. - kfree(hsotg->core_params);
  19. #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
  20. kfree(hsotg->last_frame_num_array);