diff options
| author | Seung-Woo Kim <[email protected]> | 2020-10-16 16:29:02 +0900 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2021-01-31 14:08:56 +0100 |
| commit | 8b387f112bc96688d40281fc22531863eb812511 (patch) | |
| tree | dbcb2d4133e28c92dad77a1ede1bfb73899f7310 /include/linux/linux_string.h | |
| parent | 1b3c4cb1e392bf9365ac633d305c6a1aac9b94e1 (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/linux_string.h')
0 files changed, 0 insertions, 0 deletions
