diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 4ce82017c686e145acc380a8dede95f9e2c0ceb4..b6d616bac5dc8f39b0a70e142aac47e73c0e9920 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);