From d2a2f96adfb4a040e69641a4ac0018a17e8164e9 Mon Sep 17 00:00:00 2001 From: Far Date: Thu, 18 Nov 2021 11:37:04 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20011a55f=20from=20https://gitee.com/yesi?= =?UTF-8?q?yuanjim/kernel=5Fliteos=5Fa/pulls/712=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Djffs2=E9=80=82=E9=85=8D=E5=B1=82=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=87=8A=E6=94=BE=E9=94=81=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复重复释放jffs2全局锁的BUG Close #I4FH9M Signed-off-by: Far --- fs/jffs2/src/vfs_jffs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 4ce82017..b6d616ba 100644 --- a/fs/jffs2/src/vfs_jffs2.c +++ b/fs/jffs2/src/vfs_jffs2.c @@ -201,13 +201,13 @@ int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct } (void)VfsHashGet(parentVnode->originMount, node->i_ino, &newVnode, NULL, NULL); - LOS_MuxUnlock(&g_jffs2FsLock); if (newVnode) { if (newVnode->data == NULL) { LOS_Panic("#####VfsHashGet error#####\n"); } newVnode->parent = parentVnode; *ppVnode = newVnode; + LOS_MuxUnlock(&g_jffs2FsLock); return 0; } ret = VnodeAlloc(&g_jffs2Vops, &newVnode); -- GitLab