fix: 修复jffs2适配层错误释放锁的BUG
修复重复释放jffs2全局锁的BUG Close #I4FH9M Signed-off-by: Far <yesiyuan2@huawei.com>
This commit is contained in:
parent
fe4082ca9e
commit
011a55ff21
|
@ -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);
|
(void)VfsHashGet(parentVnode->originMount, node->i_ino, &newVnode, NULL, NULL);
|
||||||
LOS_MuxUnlock(&g_jffs2FsLock);
|
|
||||||
if (newVnode) {
|
if (newVnode) {
|
||||||
if (newVnode->data == NULL) {
|
if (newVnode->data == NULL) {
|
||||||
LOS_Panic("#####VfsHashGet error#####\n");
|
LOS_Panic("#####VfsHashGet error#####\n");
|
||||||
}
|
}
|
||||||
newVnode->parent = parentVnode;
|
newVnode->parent = parentVnode;
|
||||||
*ppVnode = newVnode;
|
*ppVnode = newVnode;
|
||||||
|
LOS_MuxUnlock(&g_jffs2FsLock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
ret = VnodeAlloc(&g_jffs2Vops, &newVnode);
|
ret = VnodeAlloc(&g_jffs2Vops, &newVnode);
|
||||||
|
|
Loading…
Reference in New Issue