kernel: bump 4.9 to 4.9.106 for 18.06
[openwrt/openwrt.git] / target / linux / generic / backport-4.9 / 050-usb-dwc2-Remove-unnecessary-kfree.patch
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
6 This shouldn't be freed by the HCD as it is owned by the core and
7 allocated with devm_kzalloc.
8
9 Signed-off-by: John Youn <johnyoun@synopsys.com>
10 Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
11 ---
12 drivers/usb/dwc2/hcd.c | 1 -
13 1 file changed, 1 deletion(-)
14
15 --- a/drivers/usb/dwc2/hcd.c
16 +++ b/drivers/usb/dwc2/hcd.c
17 @@ -5200,7 +5200,6 @@ error3:
18 error2:
19 usb_put_hcd(hcd);
20 error1:
21 - kfree(hsotg->core_params);
22
23 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
24 kfree(hsotg->last_frame_num_array);