From 9145fe0c108964f17222ad7e4165bda77cb9e737 Mon Sep 17 00:00:00 2001 From: DL Date: Wed, 27 Sep 2017 06:55:37 +0300 Subject: [PATCH] Fixed directory unlocking in tmpfs_opendir --- fs/tmpfs/fs_tmpfs.c | 2 ++ 1 file changed, 2 insertions(+) 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 */