!178 当从hashtable中获取Vnode缓存时,需要刷新Vnode的parent指针

Merge pull request !178 from Far/fatfs
This commit is contained in:
openharmony_ci 2021-04-24 11:30:01 +08:00 committed by Gitee
commit be40fa1381
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ int fatfs_lookup(struct Vnode *parent, const char *path, int len, struct Vnode *
goto ERROR_UNLOCK; goto ERROR_UNLOCK;
} }
} else { } else {
vp->parent = parent;
free(dfp); /* hash hit dfp is no needed */ free(dfp); /* hash hit dfp is no needed */
} }