diff mbox series

[7/8,v3] usb: dwc2: Remove unnecessary kfree

Message ID 20190214132403.10687-8-linus.walleij@linaro.org
State New
Headers show
Series Stable material from OpenWrt for v4.9.y | expand

Commit Message

Linus Walleij Feb. 14, 2019, 1:24 p.m. UTC
From: John Youn <johnyoun@synopsys.com>


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>

---
- This was applied upstream in v4.10
- Should be applied to stable v4.9.y
---
 drivers/usb/dwc2/hcd.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.20.1
diff mbox series

Patch

diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 984d6aae7529..0e5435330c07 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -5202,7 +5202,6 @@  int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
 error2:
 	usb_put_hcd(hcd);
 error1:
-	kfree(hsotg->core_params);
 
 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
 	kfree(hsotg->last_frame_num_array);