diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index 35bacf0e120..4da971f3c04 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -1849,6 +1849,8 @@ static int tmpfs_opendir(FAR struct inode *mountpt, FAR const char *relpath, { dir->u.tmpfs.tf_tdo = tdo; dir->u.tmpfs.tf_index = 0; + + tmpfs_unlock_directory(tdo); } /* Release the lock on the file system and return the result */