From 78a6bd94160d0dab8f9496748e30f599ec17993a Mon Sep 17 00:00:00 2001 From: zhangfanfan2 Date: Fri, 9 Apr 2021 19:30:40 +0800 Subject: [PATCH] =?UTF-8?q?VfsJffs2Lookup=E4=B8=ADVfsHashGet=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=9A=84vnode=E6=9C=AA=E5=88=A4=E6=96=ADdata=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E6=9C=89=E6=95=88=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fs/jffs2/src/vfs_jffs2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 97596027..5f602d74 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; }