From f305d1f702a770010125a0f4f0152ffefeeec5c4 Mon Sep 17 00:00:00 2001 From: LeonChan Date: Wed, 21 Apr 2021 18:35:15 +0800 Subject: [PATCH] fix: kernel crashed when delete a umounted folder --- 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 31eb8e27..9af683b8 100755 --- a/fs/jffs2/src/vfs_jffs2.c +++ b/fs/jffs2/src/vfs_jffs2.c @@ -534,7 +534,7 @@ int VfsJffs2Mkdir(struct Vnode *parentNode, const char *dirName, mode_t mode, st newVnode->type = VNODE_TYPE_DIR; node->i_vnode = newVnode; newVnode->vop = parentNode->vop; - if (&g_jffs2Vops != parentVnode->vop) { + if (&g_jffs2Vops != parentNode->vop) { LOS_Panic("jffs2 vop failed"); } newVnode->fop = parentNode->fop; -- GitLab