summaryrefslogtreecommitdiff
path: root/include/linux/stringify.h
diff options
context:
space:
mode:
authorSeung-Woo Kim <[email protected]>2020-10-16 16:29:02 +0900
committerMarek Vasut <[email protected]>2021-01-31 14:08:56 +0100
commit8b387f112bc96688d40281fc22531863eb812511 (patch)
treedbcb2d4133e28c92dad77a1ede1bfb73899f7310 /include/linux/stringify.h
parent1b3c4cb1e392bf9365ac633d305c6a1aac9b94e1 (diff)
gadget: f_thor: fix wrong file size cast
Casting 32bit int value directly into 64bit unsigned type causes wrong value for file size equal or larger than 2GB. Fix the wrong file size by casting uint32_t first. Fixes: commit 1fe9ae76b113 ("gadget: f_thor: update to support more than 4GB file as thor 5.0") Reported-by: Junghoon Kim <[email protected]> Signed-off-by: Seung-Woo Kim <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions