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

Skip to content
Commit cca6fe98 authored by Udipto Goswami's avatar Udipto Goswami
Browse files

USB: f_mtp: Revert Avoid queuing of receive_file_work for 0 length



Commit 76f7005ad3b4 ("USB: f_mtp: Avoid queuing of receive_file_work
for 0 length") adds a check for 0 length file and avoid queuing in
order to save some milliseconds in mtp file transfers.
However, this approach is correct only for windows system as it
ignores 0 length files but other OS like MAC & Ubuntu do not follow
this logic. They allows 0 length file to be copied which is why mtp
file transfer failure is observed when target is connected to MAC
or Ubuntu.

Fix this by reverting the check for 0 length.

Change-Id: I48559e89afa7a4220bdef3f078e2aa739c402b4b
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent 19dad3f7
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