commit | f191b0eb192cb7cc3ea8352d66bb0fdaa31592a7 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Tue Feb 21 22:52:56 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Feb 21 22:52:57 2017 +0000 |
tree | b8cb6786bb819afacb77f886d44529a2e1b9f05a | |
parent | 679ec7147cf2f8da789ddcb4df72311a9546d5b3 [diff] | |
parent | 50c5be23710efa20348c04d97c6ad2d7120a11ee [diff] |
Merge "adb: set max_rw to USB_FFS_BULK_SIZE explicitly"
diff --git a/adb/daemon/usb.cpp b/adb/daemon/usb.cpp index ac05d4c..c08b922 100644 --- a/adb/daemon/usb.cpp +++ b/adb/daemon/usb.cpp
@@ -319,7 +319,7 @@ D("[ adb: cannot call endpoint alloc: errno=%d ]", errno); // Kernel pre-allocation could have failed for recoverable reasons. // Continue running with a safe max rw size. - h->max_rw *= 2; + h->max_rw = USB_FFS_BULK_SIZE; return true; err: