From 750cb578afcf72b5d18006f7010c4a9aa6cc27c2 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 22 Oct 2018 13:44:11 +0900 Subject: [PATCH] usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true Set the quirk_ep_out_aligned_size as true. This patch is fixed about occurring kernel panic after failed memory allocation. Change-Id: Iafb6ccaa6f7d7dac4eb0593291166ab13cd8256d Signed-off-by: Jaehoon Chung [dwoo08.lee: bring commit from linux-artik7 of public tizen repository] Signed-off-by: Dongwoo Lee --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 7ceb151..09c2a07 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -4939,6 +4939,7 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg) epnum, 0); } + hsotg->gadget.quirk_ep_out_aligned_size = true; dwc2_hsotg_dump(hsotg); #if IS_ENABLED(CONFIG_EXTCON) -- 2.7.4