Merged in hardlulz/modem-3.0-nuttx/fix-tmpfs-opendir (pull request #495)

Fixed directory unlocking in tmpfs_opendir

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Dmitriy Linikov 2017-09-27 14:59:39 +00:00 committed by Gregory Nutt
commit 3647ace559

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