Fixed directory unlocking in tmpfs_opendir

This commit is contained in:
DL 2017-09-27 06:55:37 +03:00
parent 9bc65f4686
commit 9145fe0c10

View File

@ -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 */