This was missed the first time, because it was .size instead of ->size. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- fs/smhfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smhfs.c b/fs/smhfs.c index b32f7422ee48..ed98cd247bd8 100644 --- a/fs/smhfs.c +++ b/fs/smhfs.c @@ -116,7 +116,7 @@ static int smhfs_stat(struct device __always_unused *dev, if (smhfs_open(NULL, &file, filename) == 0) { s->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO; - s->st_size = file.size; + s->st_size = file.f_size; } smhfs_close(NULL, &file); -- 2.39.5