Merge "adb: set max_rw to USB_FFS_BULK_SIZE explicitly"
This commit is contained in:
commit
b63d47356a
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ bool init_functionfs(struct usb_handle* h) {
|
||||||
D("[ adb: cannot call endpoint alloc: errno=%d ]", errno);
|
D("[ adb: cannot call endpoint alloc: errno=%d ]", errno);
|
||||||
// Kernel pre-allocation could have failed for recoverable reasons.
|
// Kernel pre-allocation could have failed for recoverable reasons.
|
||||||
// Continue running with a safe max rw size.
|
// Continue running with a safe max rw size.
|
||||||
h->max_rw *= 2;
|
h->max_rw = USB_FFS_BULK_SIZE;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue