From b596608f098937049fd98c5896cf72ebbf3584ae Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 7 Jan 2011 23:18:14 -0500 Subject: [PATCH] adb: Increase device descriptor buffer size in Linux host USB support 256 bytes wasn't big enough for some complicated USB configurations Change-Id: I31f7841953d73b06958f44040f58166b159faff4 Signed-off-by: Mike Lockwood --- adb/usb_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/usb_linux.c b/adb/usb_linux.c index 2f7f8706a..cd610831a 100644 --- a/adb/usb_linux.c +++ b/adb/usb_linux.c @@ -149,7 +149,7 @@ static void find_usb_device(const char *base, // DBGX("[ scanning %s ]\n", busname); while((de = readdir(devdir))) { - unsigned char devdesc[256]; + unsigned char devdesc[4096]; unsigned char* bufptr = devdesc; unsigned char* bufend; struct usb_device_descriptor* device;