diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index 9606c02429c79094aae980c399b16499e5526c22..f610ec43f035e59a32775bd6932b56b9ddc13c3e 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -750,7 +750,7 @@ int statfs(const char *path, struct statfs *buf) return MapToPosixRet(ret); } - if (mp->mFs->fsFops->stat != NULL) { + if (mp->mFs->fsFops->statfs != NULL) { ret = mp->mFs->fsMops->statfs(pathInMp, buf); } else { VFS_ERRNO_SET(ENOTSUP);