diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 97596027bca954623b4fdaecce9a73f222cb7fc0..5f602d74cc1a9377e49d384e0a62260c678d7584 100755 --- a/fs/jffs2/src/vfs_jffs2.c +++ b/fs/jffs2/src/vfs_jffs2.c @@ -202,6 +202,9 @@ int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct (void)VfsHashGet(parentVnode->originMount, node->i_ino, &newVnode, NULL, NULL); LOS_MuxUnlock(&g_jffs2FsLock); if (newVnode) { + if (newVnode->data == NULL) { + LOS_Panic("#####VfsHashGet error#####\n"); + } *ppVnode = newVnode; return 0; }