summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-01-07 23:18:14 -0500
committerMike Lockwood <lockwood@android.com>2011-02-03 15:26:41 -0500
commita5d469484660513e47b074b9d7fff17475a68efc (patch)
tree7d6af7e7fd0161cd07113a69233d72f80b8f9ee5 /adb
parent3e42db23fbbfdc2866f5ca035641444c5ab2ff78 (diff)
downloadsystem_core-a5d469484660513e47b074b9d7fff17475a68efc.zip
system_core-a5d469484660513e47b074b9d7fff17475a68efc.tar.gz
system_core-a5d469484660513e47b074b9d7fff17475a68efc.tar.bz2
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 <lockwood@android.com>
Diffstat (limited to 'adb')
-rw-r--r--adb/usb_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/usb_linux.c b/adb/usb_linux.c
index 2f7f870..cd61083 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;