Skip to content
Commit 8b387f11 authored by Seung-Woo Kim's avatar Seung-Woo Kim Committed by Marek Vasut
Browse files

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 1fe9ae76 ("gadget: f_thor: update to support more than 4GB file as thor 5.0")
Reported-by: default avatarJunghoon Kim <jhoon20.kim@samsung.com>
Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 1b3c4cb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment