Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 70b8b076 authored by zhang sanshan's avatar zhang sanshan Committed by Jerry Zhang
Browse files

ANDROID: USB gadget: mtp: Fix hang in ioctl(MTP_RECEIVE_FILE) for WritePartialObject



user space will hang at ioctl when copy file.
ioctl(mFD, MTP_RECEIVE_FILE, (unsigned long)&mfr);
length of read_req need rounded up to max packet size for usb_ep_queue,
Otherwise the read request will never complete.

Change-Id: Id8c6d7c44d1c16bb81dd77d3acc96ef2ab31f4c2
Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
Signed-off-by: default avatarzhang sanshan <sanshan.zhang@nxp.com>
parent 9452b2c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment