Merge "adb: set max_rw to USB_FFS_BULK_SIZE explicitly"

am: b63d47356a

Change-Id: I84f691f38c05a42fc7e4fd326b3be6d4732c32ca
This commit is contained in:
Jerry Zhang 2017-02-21 22:57:05 +00:00 committed by android-build-merger
commit d59b93a5f5
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ bool init_functionfs(struct usb_handle* h) {
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: