From 9ff38a51450949e6b0160e0a4af0927f1d1ea679 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 20 Jan 2017 15:29:08 -0800 Subject: [PATCH] usb: composite: Increase ep0 buffer size to 4KB Maximum QMI packet size is 4KB. As a result with current ep0 buffer size of 1KB driver is overstepping the buffer memory when QMI packet of more than 1KB size is received from usb host. Change-Id: Id162ed23dfa855fd7e11d43b32627b577c0c2dd4 Signed-off-by: Hemant Kumar --- include/linux/usb/composite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index bc5637ab01df..4cde40dac778 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -55,7 +55,7 @@ #define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */ /* big enough to hold our biggest descriptor */ -#define USB_COMP_EP0_BUFSIZ 1024 +#define USB_COMP_EP0_BUFSIZ 4096 #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1) struct usb_configuration;