Skip to content
Snippets Groups Projects
Commit 4304a200 authored by Mike Lockwood's avatar Mike Lockwood Committed by Vineeta Srivastava
Browse files

USB: gadget: f_mtp: Fix integer overflow when transferring large files.


The ALIGN() macro will overflow if given large integers, and MTP uses
0xFFFFFFFF for SendObject data packet size when the file is >= 4 gig.

Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
parent 268c5c0b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment