Modify the length field of USB Container Header when receive >=4G file.
authorSun Hai <haix.sun@intel.com>
Thu, 23 Feb 2012 02:37:43 +0000 (10:37 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 29 Feb 2012 05:23:38 +0000 (21:23 -0800)
commit6f2a2351e4f1af2d62e960cc22f7d4d0949ecf25
treefbacc41a3bce97f74d0221c9843362566754df8b
parentcfbeec49e1705aaeb01d0bfc8213b93cdb54ac42
Modify the length field of USB Container Header when receive >=4G file.

BZ: 21905

Modify the length field of USB Container Header. When the file is larger the 4G,
The ContainerLength feild should be 0xffffffff rather than the result of truncating
file length (64-bit)to 32-bit.

Change-Id: Ib11aea506ce2359eac748c562ab96c2448b649fa
Signed-off-by: Sun Hai <haix.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/36309
Reviewed-by: Huang, Bo B <bo.b.huang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Liu, DongxingX <dongxingx.liu@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/gadget/f_mtp.c