diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 9af683b8..00602238 100644 --- a/fs/jffs2/src/vfs_jffs2.c +++ b/fs/jffs2/src/vfs_jffs2.c @@ -205,6 +205,7 @@ int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct if (newVnode->data == NULL) { LOS_Panic("#####VfsHashGet error#####\n"); } + newVnode->parent = parentVnode; *ppVnode = newVnode; return 0; }