fs/mount: fix mount cmd break out when meet stat error

Change-Id: I9307fe67837a6519fffa1844fcfd794f735d2fdd
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2021-01-08 22:47:43 +08:00
committed by liguiding1
parent 1c33ac85f0
commit 5b8ca6569f
+2 -3
View File
@@ -106,7 +106,7 @@ static int mountpoint_filter(FAR struct inode *node,
if (pathlen + namlen > PATH_MAX)
{
return -ENAMETOOLONG;
return OK;
}
/* Append the inode name to the directory path */
@@ -115,8 +115,7 @@ static int mountpoint_filter(FAR struct inode *node,
/* Get the status of the file system */
ret = node->u.i_mops->statfs(node, &statbuf);
if (ret == OK)
if (node->u.i_mops->statfs(node, &statbuf) == OK)
{
/* And pass the full path and file system status to the handler */