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 Xiang Xiao
parent 48d49e5a7c
commit d2488715c0
1 changed files with 2 additions and 3 deletions

View File

@ -91,7 +91,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 */
@ -100,8 +100,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 */