diff --git a/fs/fat/os_adapt/fatfs.c b/fs/fat/os_adapt/fatfs.c index fd0f2210..46843f2f 100644 --- a/fs/fat/os_adapt/fatfs.c +++ b/fs/fat/os_adapt/fatfs.c @@ -313,6 +313,7 @@ int fatfs_lookup(struct Vnode *parent, const char *path, int len, struct Vnode * goto ERROR_UNLOCK; } } else { + vp->parent = parent; free(dfp); /* hash hit dfp is no needed */ }