diff --git a/fs/fat/os_adapt/fatfs.c b/fs/fat/os_adapt/fatfs.c index fd0f2210854c54ad514287b403ae778b5e55c13e..46843f2fdc980142b943e06ae4f330990e710c10 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 */ }