fix: kernel crashed when delete a umounted folder

This commit is contained in:
LeonChan 2021-04-21 18:35:15 +08:00 committed by Gitee
parent ac0d083b1c
commit f305d1f702
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ int VfsJffs2Mkdir(struct Vnode *parentNode, const char *dirName, mode_t mode, st
newVnode->type = VNODE_TYPE_DIR; newVnode->type = VNODE_TYPE_DIR;
node->i_vnode = newVnode; node->i_vnode = newVnode;
newVnode->vop = parentNode->vop; newVnode->vop = parentNode->vop;
if (&g_jffs2Vops != parentVnode->vop) { if (&g_jffs2Vops != parentNode->vop) {
LOS_Panic("jffs2 vop failed"); LOS_Panic("jffs2 vop failed");
} }
newVnode->fop = parentNode->fop; newVnode->fop = parentNode->fop;