VfsJffs2Lookup中VfsHashGet获取的vnode未判断data字段的有效性
This commit is contained in:
parent
cd9c1d9789
commit
78a6bd9416
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue