TPL: TM2: f_thor: fix wrong size caused by casting s32 to u64
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 10 Apr 2017 11:14:02 +0000 (20:14 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 11:02:48 +0000 (12:02 +0100)
commitbbd572992a8f19bc17567f7e98df99fae18953b4
treec29a9126a7f421ff1ed0e48bf667bab4a42b3c91
parent4921e8f70eaada57f582c55aee852785ba3aa51c
TPL: TM2: f_thor: fix wrong size caused by casting s32 to u64

Currently, in arm64 environment, thor download for a file more than
2GB size is failed because requested file size is not properly set.
It is because of assignment of a signed value to a bigger unsigned
type for the size of a file. So this patch fixes wrong size casting.
This also fixes to print debug information about the requested file
size with casted variable.

Change-Id: Id0e67035be05b0df346a8bb0ea17b5ba3e40e8f2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/gadget/f_thor.c