diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 9af683b85ee434d25b94542f5303fac6083c956a..00602238b973b82a9d493a450f2badbad2e273b6 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; }