From e1dbb6b2a9ca182921f9993b52813405785b538f Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 25 May 2020 18:25:41 +0300 Subject: [PATCH] Update fs/vfs/fs_stat.c Co-authored-by: patacongo --- fs/vfs/fs_stat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/vfs/fs_stat.c b/fs/vfs/fs_stat.c index d58b0b8ab4..91e8631b87 100644 --- a/fs/vfs/fs_stat.c +++ b/fs/vfs/fs_stat.c @@ -389,7 +389,8 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf) if ((inode->u.i_bops != NULL) && (inode->u.i_bops->geometry)) { struct geometry geo; - if (inode->u.i_bops->geometry(inode, &geo) >= 0 && geo.geo_available) + if (inode->u.i_bops->geometry(inode, &geo) >= 0 && + geo.geo_available) { buf->st_size = geo.geo_nsectors * geo.geo_sectorsize; }