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)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 04:31:38 +0000 (13:31 +0900)
commit721f3002ad97bccd531645b57d5076d73644ec67
tree6dc8549193f00ecac87b617e886be502a5a3349b
parent09adc0ed5323c66b58f6588c2cc91e994169f1fc
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